You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cleaned up to use only Google Cloud SpeechRecognition.
I've enabled the Cloud Speech-to-Text API, got the Json credentials (local json file path set in shell's environment, and working), and the service calls ARE hitting & authenticating on the API. The Microphone is fine, and the recording bit happens quickly.
However, its taking fully 80 seconds to perform the API call! The Pi is connected on ether to fast fibre router.
I've monitored the network traffic, and I can see that the API connection kinda sits idle for 78 seconds, and then TX/RXs really fast in the final 2 seconds. How can I speed this up?
Can it be slow-authentication handshake that I might mend? Is it the Pi?
Python 3.9, Rasbian OS 2023.
Thanks a mil!
The delay happens on the 2nd last line here:
print("0 seconds")
try:
print("Google Cloud Speech thinks you said " + r.recognize_google_cloud(audio)
print("80th second")
The text was updated successfully, but these errors were encountered:
I'm having the same problem with Google Speech Recognition, but in a Windows 10 machine but it only takes about 14-ish second to be ready. Can someone help?
i would try using recognize_vosk, it can work offline and is very fast. it does however require you to install models for it to work off, however, the gains are great and it is pretty accurate
I'm using the PyPi code ( https://pypi.org/project/SpeechRecognition/)
Cleaned up to use only Google Cloud SpeechRecognition.
I've enabled the Cloud Speech-to-Text API, got the Json credentials (local json file path set in shell's environment, and working), and the service calls ARE hitting & authenticating on the API. The Microphone is fine, and the recording bit happens quickly.
However, its taking fully 80 seconds to perform the API call! The Pi is connected on ether to fast fibre router.
I've monitored the network traffic, and I can see that the API connection kinda sits idle for 78 seconds, and then TX/RXs really fast in the final 2 seconds. How can I speed this up?
Can it be slow-authentication handshake that I might mend? Is it the Pi?
Python 3.9, Rasbian OS 2023.
Thanks a mil!
The delay happens on the 2nd last line here:
print("0 seconds")
try:
print("Google Cloud Speech thinks you said " + r.recognize_google_cloud(audio)
print("80th second")
The text was updated successfully, but these errors were encountered: