Last answered:

10 Jan 2025

Posted on:

07 Jan 2025

0

Resolved: API Connection error

when I ran transcribe_audio function I got 

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

5 answers ( 1 marked as helpful)
Instructor
Posted on:

08 Jan 2025

0
Hi Abdulrahman!
Thanks for reaching out.
The error is likely due to an interrupted connection to Google's speech recognition service, which could result from temporary network issues or server unavailability. Please try again after a short while. If the problem persists, share a screenshot of your code and the error message so we can assist further. Thank you!
Best,
Ivan
Posted on:

08 Jan 2025

0

Hi Ivan, 
Thanks for your answer 

   

Instructor
Posted on:

09 Jan 2025

0

Hi Abdulrahman!

Thanks for providing the screenshot.
The error ConnectionResetError: [WinError 10054]  often occurs when the Google Speech Recognition API temporarily restricts access due to too many connection requests. This could be a result of exceeding the API's rate limits. To resolve this, try creating a new notebook and running the code again after some time.
Other potential causes include network instability, which can interrupt the connection, or firewall/security software blocking access. So, you can try switching these off. Additionally, temporary unavailability of Google’s servers might cause this error (although we’ve tested access to Google from our end, and it appears to be working fine).
If the issue persists, feel free to continue with the lesson and try the offline transcription method demonstrated with OpenAI’s Whisper later in the course.  
You can try using the Google Speech API again later.
Best,
Ivan

Posted on:

10 Jan 2025

0

Are these restrictions caused by using Visual Studio locally? 
Do you recommend using the Juypter Notebook instead?

Instructor
Posted on:

10 Jan 2025

0
Hi Abdulrahman!
The restrictions aren't specifically caused by using Visual Studio locally—it's more about the number of requests sent to the Google Speech Recognition API within a short time frame. However, the setup might affect how smoothly the API runs due to potential network or firewall issues.
In the course, we use Jupyter Notebook, and it has worked well there without similar issues. For consistency and a smoother experience, we recommend switching to Jupyter —it aligns with the course instructions and might help avoid any complications.
Hope this helps.
Ivan

Submit an answer