HackerShackOfficial / AI-Smart-Mirror

Smart Mirror with a smart AI 🤖
MIT License
537 stars 214 forks source link

After "ok mirror" the whole process stops! (MacOS Sierra 10.12.2) #25

Closed activea closed 7 years ago

activea commented 7 years ago

I'm listening Found audio Traceback (most recent call last): File "bot.py", line 254, in bot.start() File "bot.py", line 44, in start if self.speech.is_call_to_action(recognizer, audio): File "/Users/activea/Desktop/AI-Smart-Mirror-master/speech.py", line 44, in is_call_to_action speech = self.google_speech_recognition(recognizer, audio) File "/Users/activea/Desktop/AI-Smart-Mirror-master/speech.py", line 20, in google_speech_recognition speech = recognizer.recognize_google(audio) File "/Users/activea/Desktop/AI-Smart-Mirror-master/hhsmartmirror/lib/python2.7/site-packages/speech_recognition/init.py", line 741, in recognize_google best_hypothesis = max(actual_result["alternative"], key=lambda alternative: alternative["confidence"]) File "/Users/activea/Desktop/AI-Smart-Mirror-master/hhsmartmirror/lib/python2.7/site-packages/speech_recognition/init.py", line 741, in best_hypothesis = max(actual_result["alternative"], key=lambda alternative: alternative["confidence"]) KeyError: 'confidence'

rayzsoul commented 7 years ago

Hi, I have the same error. How did you fix it?