Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in loading Google_Cloud credentials #24

Open
humanely opened this issue Jun 25, 2017 · 2 comments
Open

Error in loading Google_Cloud credentials #24

humanely opened this issue Jun 25, 2017 · 2 comments
Labels

Comments

@humanely
Copy link

humanely commented Jun 25, 2017

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

@SlapBot
Copy link
Owner

SlapBot commented Jun 29, 2017

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 SlapBot added the bug label Jul 11, 2017
@dankolesnikov
Copy link

HAS THIS BEEN RESOLVED?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants