SpeechRecognition producing OSError: No Default Input Device Available
问题 This: import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as source: print("Speak Anything :") audio = r.listen(source) try: text = r.recognize_google(audio) print("You said : {}".format(text)) except: print("Sorry could not recognize what you said") Producing this: Traceback (most recent call last): File "magic.py", line 5, in <module> with sr.Microphone() as source: File "/home/myPorfile/anaconda3/envs/customEnv/lib/python3.6/site-packages/speech_recognition/__init__.py