Description
In which file did you encounter the issue?
Did you change the file? If so, how?
No
Describe the issue
We have witnessed a very inconsistent behavior of streaming API functionality of google cloud speech service during the last week in our testing in different environments. I have raised couple of tickets for each observation. However, we didn't realize that issue was even in the original script as we did our initial testing with a modified script to use arecord
instead of pyaudio
to circumvent an issue in NAO robot OS (see #738 ). As none of the fixes worked out, we tried testing the original transcribe_streaming.py
file on windows 8 and python 2.7.11 but ended up with the inconsistent behavior. During our testing, we ran into streaming too fast
error couple of times (see following stack trace). This error didn't occur consistently with every attempt we made to run the script. We tried running script for multiple times at 4 different times of the day out of which the error was thrown on two times of the day. This script was used as is with no changes at all. Is there any reason for the script to throw this error at different attempts? What does it depend on? Is there a way to get rid of this error?
C:\google stt integration>python transcribe_streaming.py
I want to open an account
Traceback (most recent call last):
File "transcribe_streaming-changed.py", line 230, in <module>
main()
File "transcribe_streaming-changed.py", line 221, in main
listen_print_loop(recognize_stream)
File "transcribe_streaming-changed.py", line 170, in listen_print_loop
raise RuntimeError('Server error: ' + resp.error.message)
RuntimeError: Server error: Audio data is being streamed too fast. Please stream audio data approximately at real time.
C:\google stt integration>python transcribe_streaming.py
E1230 18:57:05.532000000 15128 src/core/lib/security/transport/handshake.c:128] Security handshake failed: {"created":"@1483104425.532000000","description":"Handshake read failed","file":"src/core/lib
/security/transport/handshake.c","file_line":237,"referenced_errors":[{"created":"@1483104425.532000000","description":"End of TCP stream","file":"src/core/lib/iomgr/tcp_windows.c","file_line":180}]}
I want to open an account
Traceback (most recent call last):
File "transcribe_streaming.py", line 230, in <module>
main()
File "transcribe_streaming.py", line 221, in main
listen_print_loop(recognize_stream)
File "transcribe_streaming.py", line 170, in listen_print_loop
raise RuntimeError('Server error: ' + resp.error.message)
RuntimeError: Server error: Audio data is being streamed too fast. Please stream audio data approximately at real time.