Closed prosCcoding closed 3 weeks ago
This issue was already fixed (see #1306). Please upgrade to the 2.3.5 version of PSReadLine from PowerShell Gallery. See the upgrading section for instructions. Please let us know if you run into the same issue with the latest version.
Prerequisites
Exception report
Screenshot
n/a
Environment data
Steps to reproduce
import speech_recognition as sr
recognizer = sr.Recognizer() with sr.Microphone() as source: print("Please say something...") audio = recognizer.listen(source) try: command = recognizer.recognize_google(audio) print(f"You said: {command}") except sr.UnknownValueError: print("Sorry, I could not understand the audio.") except sr.RequestError as e: print(f"Could not request results from Google Speech Recognition service; {e}")
Expected behavior
to say something
Actual behavior
gives me the long exception