DeepSpeech: OSError: [Errno -9997] Invalid sample rate
I tried running the mic_vad_streaming
example on my raspberry pi and was met with the following error:
Output: https://gist.github.com/Technerder/4c95fcbe24911965e276eeea46d68cf8
Code: https://github.com/mozilla/DeepSpeech/blob/master/examples/mic_vad_streaming/mic_vad_streaming.py
Command: python3 mic_vad_streaming.py -m models/output_graph.tflite -l models/lm.binary
OS: Raspbian GNU/Linux 10 (buster) armv7l (Raspberry pi 4)
TensorFlow: v1.14.0-21-ge77504a
DeepSpeech: v0.6.0-0-g6d43e21
Python: 3.7.3
How can I fix this?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (1 by maintainers)
Their solution seems to have fixed it, thanks!
Edit: For the example to work I had to prefix the command with
pulseaudio &
like the example from here https://github.com/mozilla/DeepSpeech-examples/blob/r0.6/mic_vad_streaming/test.sh#L13