collabora / WhisperLive

A nearly-live implementation of OpenAI's Whisper.
MIT License
2.1k stars 284 forks source link

How to use it? #63

Closed orrest closed 1 year ago

orrest commented 1 year ago

I've successfully build the docker image, and run the docker run ... command come from the documentation, then I got this log:

Downloading VAD ONNX model...
--2023-11-18 04:58:37--  https://github.com/snakers4/silero-vad/raw/master/files/silero_vad.onnx
Resolving github.com (github.com)... 20.205.243.166
Connecting to github.com (github.com)|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/snakers4/silero-vad/master/files/silero_vad.onnx [following]
--2023-11-18 04:58:38--  https://raw.githubusercontent.com/snakers4/silero-vad/master/files/silero_vad.onnx
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 182.43.124.6, ::
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|182.43.124.6|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1807522 (1.7M) [application/octet-stream]
Saving to: ‘/root/.cache/whisper-live/silero_vad.onnx’

/root/.cache/whisper-live/sil 100%[=================================================>]   1.72M   318KB/s    in 5.8s

2023-11-18 04:58:46 (302 KB/s) - ‘/root/.cache/whisper-live/silero_vad.onnx’ saved [1807522/1807522]

After this, I tried to load the extension to the browser, after I click Start Capture, I see nothing happens from the browser.


I tried to go to localhost:9090 from the browser, got this:

Failed to open a WebSocket connection: invalid Connection header: keep-alive.

You cannot access a WebSocket server directly with a browser. You need a WebSocket client.

So, am I got the image built correctly? And how to use the client for the docker server?

Thanks.

orrest commented 1 year ago

Got this log from the console in the tab opened after Start Capture:

options.js:93 WebSocket connection to 'ws://transcription.kurg.org:7090/' failed: 

The command I used to run the docker image:

docker run -it -p 9090:9090 whisper-live:latest
zoq commented 1 year ago

We are currently working on the demo server, either use your own instance or wait a few days until the demo server is up again.

orrest commented 1 year ago

finally got it work!