Skip to content
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

Unable to connect to google API when using recognize_google() #830

Open
Unknownuserfrommars opened this issue Mar 3, 2025 · 0 comments
Open

Comments

@Unknownuserfrommars
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant