Speech Recognition: AttributeError: module 'speech_recognition' has no attribute 'Recognizer'

前端 未结 1 1446
一向
一向 2021-01-28 09:27

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.

<
相关标签:
1条回答
  • 2021-01-28 10:06

    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

    0 讨论(0)
提交回复
热议问题