-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
speech_streaming.py got Error from server: Audio data is being streamed too fast. #364
Comments
Hello- can you paste in the command-line you're using to invoke the script? |
C:\Users\Eric\Downloads\chrome\python-docs-samples\speech\api>python speech_streaming.py I have got this Error just after few words response arrived. |
I reproduced same issue with Python 2.7.11 on MacOS 10.11.5 as follows: In this case, I said 'my name is Shigeru'.
One more example. In this case, I said 'hello'.
In my environment, this occurs with a probability of one thirds. |
Hm... when I've encountered this error, it's been because the sample rate I specified was different from the actual sample rate that my mic was sampling at. If you're running the sample unmodified, though, it should be specifying the sample rate when it opens the device, and passing that same rate to the api in the initial request.. Perhaps the given rate (16000) isn't supported by your audio device? It looks like you can query your device to see what rates are supported - can you try that? You should get a list of supported sample rates, and if 16000 isn't one of them, you can modify the |
Closing this for now. Feel free to reopen if that doesn't solve it |
When running python-docs-samples/speech/api/speech_streaming.py, always got the same error from the server after connection is fired. Computer environment is windows 10 w/ ptyhon 2.7.11.
The text was updated successfully, but these errors were encountered: