Python speech recognition error converting mp3 file
问题 My first try on audio to text. import speech_recognition as sr r = sr.Recognizer() with sr.AudioFile("/path/to/.mp3") as source: audio = r.record(source) When I execute the above code, the following error occurs, <ipython-input-10-72e982ecb706> in <module>() ----> 1 with sr.AudioFile("/home/yogaraj/Documents/Python workouts/Python audio to text/show_me_the_meaning.mp3") as source: 2 audio = sr.record(source) 3 /usr/lib/python2.7/site-packages/speech_recognition/__init__.pyc in __enter__(self)