Skip to content Skip to sidebar Skip to footer

Speech Recognition: Attributeerror: Module 'speech_recognition' Has No Attribute 'recognizer'

I'm trying to run a speech recognition using the Speech Recognition Project I installed SpeechRecognition as illustrated. My code ran correctly for a few times. I was trying to in

Solution 1:

File "/Users/Sashank/Documents/Deep_Learning_A_Z/Personal Projects/Speech recognition/speech_recognition.py", line 7, in

Your name of the file is speech_recognition.py and python is looking not to the speech_recognition module but search the Recognizer in your module (file).

You need simple to rename your module (file).

For example from speech_recognition.py to sp_recog.py

Post a Comment for "Speech Recognition: Attributeerror: Module 'speech_recognition' Has No Attribute 'recognizer'"