speech_recognition icon indicating copy to clipboard operation
speech_recognition copied to clipboard

Google_speech_recognition WinError 10060

Open pmtkachev opened this issue 3 years ago • 2 comments

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

pmtkachev avatar Feb 06 '22 10:02 pmtkachev

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

Ccode-lang avatar May 25 '22 18:05 Ccode-lang

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

this is the error i get

MohamedSamer1 avatar Feb 02 '24 09:02 MohamedSamer1