collabora / WhisperLive

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

'Backend' error in command prompt #209

Closed Farooq87 closed 6 months ago

Farooq87 commented 6 months ago

c:>python run_server.py --port 9090 --backend faster_whisper Traceback (most recent call last): File "c:\run_server.py", line 31, in server.run( TypeError: TranscriptionServer.run() got an unexpected keyword argument 'backend'

Any solutions?

makaveli10 commented 6 months ago

@Farooq87 That shouldn't happen if you are on the latest version. Can you try upgrading whisper-live and test if it resolves the issue. Because, I see that we have a backend command-line arg in run_server.py: https://github.com/collabora/WhisperLive/blob/a9683319e05bb881f560b713260d0727edf69cae/run_server.py#L34

Farooq87 commented 6 months ago

@Farooq87 That shouldn't happen if you are on the latest version. Can you try upgrading whisper-live and test if it resolves the issue. Because, I see that we have a backend command-line arg in run_server.py:

https://github.com/collabora/WhisperLive/blob/a9683319e05bb881f560b713260d0727edf69cae/run_server.py#L34

I updated Faster Whisper, but still have the same error 11111

makaveli10 commented 6 months ago

@Farooq87 Instead of faster-whisper, you need to check that you run latest version of whisper-live.

pip install --upgrade whisper-live
makaveli10 commented 6 months ago

@Farooq87 just tested with latest version of whisper-live:

$ python run_server.py --port 9090 --backend faster_whisper
INFO:websockets.server:connection open
INFO:root:New client connected
INFO:root:Running faster_whisper backend.
INFO:faster_whisper:Processing audio with duration 00:01.024
INFO:faster_whisper:VAD filter removed 00:00.000 of audio
.
.