You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a bug or error, maybe.
This line passes the key as json file. And therefore speech_recognition generates an exception, which expects JSON.
Machine: Windows 8.1, Python 3
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\work\Voice2.py", line 35, in run
b.initiate()
File "C:\work\Stephanie\boot.py", line 63, in initiate
assistant.main(source)
File "C:\work\Stephanie\virtual_assistant.py", line 12, in main
text = self.get_text_from_speech(audio)
File "C:\work\Stephanie\commander.py", line 19, in get_text_from_speec
h
text = self.audio_manager.get_text_from_speech(audio)
File "C:\work\Stephanie\AudioManager\audio_manager.py", line 25, in ge
t_text_from_speech
text = self.audio_recognizer.recognize_from_google_cloud(audio)
File "C:\work\Stephanie\AudioManager\audio_recognizer.py", line 52, in
recognize_from_google_cloud
credentials_json=google_cloud_speech_credentials)
File "C:\Program Files\Python36\lib\site-packages\speech_recognition_init_.
py", line 784, in recognize_google_cloud
except: raise AssertionError("credentials_json must be None or a val
id JSON string")
AssertionError: credentials_json must be None or a valid JSON string
The text was updated successfully, but these errors were encountered:
I think there is a revision in google cloud validation scheme, I'll try to fix it in the next update of stephanie, you can use bing, google, wit.ai and houndify for now.
Hi,
This is a bug or error, maybe.
This line passes the key as json file. And therefore speech_recognition generates an exception, which expects JSON.
Machine: Windows 8.1, Python 3
The text was updated successfully, but these errors were encountered: