-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
Steps to reproduce
My code
I used yt-dlp and some processessing and let SR recognize the text, but when i tried to call recognize_google(), an errored occured: Error reading video: Unable to connect Google API
Specifically, in this line of code.
Somehow, this error passed my try...except block for sr.UnknownValueError and sr.RequestError. Instead, it went to the end of the major try-except block starting from L277.
Was it my connection? But i double and triple-checked everything. Network no issue for me
Btw, as a reference, the link to my project is: https://lightningroute-fe.streamlit.app/
Expected behaviour
Recognize the audio and turn into text
Actual behaviour
Error
Error reading video: Unable to connect Google API
(This is hosted by streamlit, so i used a st.error() to display the error message instead of in the terminal)
System information
(Delete all the statements that don't apply.)
My system is Windows 11 24H2 (x64).
My Python version is 3.12.9 (In Streamlit Cloud).
My Pip version is Don't know, Streamlit Cloud doesn't have a interactive shell. (You can check this by running pip -V.)
My SpeechRecognition library version is 3.14.1.
My PyAudio library version is I don't have PyAudio installed.