Uberi / speech_recognition

Speech recognition module for Python, supporting several engines and APIs, online and offline.
https://pypi.python.org/pypi/SpeechRecognition/
BSD 3-Clause "New" or "Revised" License
8.46k stars 2.4k forks source link

Google_speech_recognition WinError 10060 #593

Open pmtkachev opened 2 years ago

pmtkachev commented 2 years ago

Simple code:

`import speech_recognition as sr

r = sr.Recognizer() with sr.Microphone() as source: print("Say something!") audio = r.listen(source)

print(r.recognize_google(audio))`

Error: TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connectio n failed because connected host has failed to respond

Ccode-lang commented 2 years ago

The internet connection timed out. Do you have a firewall installed? If so this may be the cause.

MohamedSamer1 commented 10 months ago

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

this is the error i get