speech_recognition
speech_recognition copied to clipboard
Google_speech_recognition WinError 10060
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
The internet connection timed out. Do you have a firewall installed? If so this may be the cause.
[WinError 10054] An existing connection was forcibly closed by the remote host
this is the error i get