alphacep / vosk-server

WebSocket, gRPC and WebRTC speech recognition server based on Vosk and Kaldi libraries
Apache License 2.0
896 stars 243 forks source link

test_microphone.py need to be updated ? #144

Closed ThierryH closed 2 years ago

ThierryH commented 2 years ago

Hello , I've tested the Vosk server with the test_microphone.py. And if i follow the doc , thing are not good. After looking a bit in the code , it seems that the python script send the stream using 8KHz data where the server ( latest version ) need to get 16Khz audio. Changing the python code make the whole solution work like a charm :)

Regards

ThierryH commented 2 years ago

I was testing the french docker , the issue does not occur with the english one.

nshmyrev commented 2 years ago

We introduced samplerate option in new test_microphone now. Thank you for the report.