Why doesn't speech recognition?

0 like 0 dislike
import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as source: print("Say something") audio = r.listen(source) try: print(r.recognize_google(audio, language="EN-us")) except sr.UnknownValueError: print("Robot didn't hear the phrase") except sr.RequestError as e: print("Error; {0}".format(e))

This code works fine on Windows but on Linux Mint after print("Say something") hangs in anticipation. PyAudio is installed, the microphone is working. SnowBoy perfectly recognizes speech through the microphone, and this piece of code doesn't want to.

How to fix?
by | 5 views

1 Answer

0 like 0 dislike
try:the donkey
Are you serious ?

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
28,867 users