stephanie-va icon indicating copy to clipboard operation
stephanie-va copied to clipboard

Error in loading Google_Cloud credentials

Open humanely opened this issue 8 years ago • 2 comments
trafficstars

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

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

humanely avatar Jun 25 '17 15:06 humanely

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.

SlapBot avatar Jun 29 '17 16:06 SlapBot

HAS THIS BEEN RESOLVED?!

dankolesnikov avatar Jun 21 '18 21:06 dankolesnikov