Skip to content

HumeAI/hume-chrome-extension

Repository files navigation

Hume Chrome Extension

Summary

This chrome extension is an example implementation project which enables a user to capture a video on a web page, open a Web Socket connection, and send the captured frames through the Web Socket connection for realtime inference.

Running Locally

  1. Clone the repo with git clone origin https://github.com/HumeAI/hume-chrome-extension.git

  2. Install dependencies with npm i

  3. Build project with npm run build

  4. Open Extensions (Manage Extensions) in Chrome Browser

  5. Make sure "Development mode" is turned on (top right corner of the Manage Extensions dashboard)

  6. Click the "Load unpacked" button and select dist folder generated by the build script in step 3

Streaming video

To make authenticated requests using Hume's Streaming API, open the extension's options page and input your API key. Click the Hume logo at the top to be navigated to the Hume Portal to get your account's API key, or click the "Get an API key" link to be navigated to the Hume Sign Up page to create an account.

To begin streaming open the popup and click the "Start" button. A WebSocket connection will be opened, and the video's frames will be captured and sent as base64 encoded image files for processing.

Clicking the pause button will close the socket and pause the video. Clicking the play button will open a new socket and resume streaming for inference results.

Notes

  • This extension is not published to the Chrome Web Store.
  • Pausing the video, or the video ending, will terminate the stream.
  • The video which is processed will always be the first <video> element in the DOM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published