-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Exceptions running speech samples on OSX #510
Comments
Hello - looks like you haven't set up auth yet - it looks like it's using the auth from the cloudsdktool (ie gcloud) instead of from your project. |
I got this working. Yesterday, after I posted this issue, I was able to set the GOOGLE_APPLICATION_CREDENTIALS env var correctly to point to my json creds file. Now, I am porting this whole thing to Raspberry Pi on my GoPiGo. |
Source-Link: googleapis/synthtool@1b71c10 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Source-Link: googleapis/synthtool@1b71c10 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Source-Link: googleapis/synthtool@1b71c10 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Re: voice API samples:
I am trying to reproduce the GoPiGo (Raspberry PI Robot Car) voice-controlled car demo that was done in the spring. http://bit.ly/2c30Ko6
So far, I have all the keys, GCP, appengine and everything (I think) properly installed on latest OSX.
Just to try and run any of the GRPC samples gets about the same exceptions - shown below.
Does anyone have experience with this and can help?
Thanks in advance.
(grpc) steves-MacBook-Pro:grpc salvideoguy$ sudo python transcribe_async.py gs://voice_test/audio.flac
Traceback (most recent call last):
File "transcribe_async.py", line 121, in
main(args.input_uri, args.encoding, args.sample_rate)
File "transcribe_async.py", line 74, in main
), DEADLINE_SECS)
File "/Users/salvideoguy/pydev/py_projects/google_voice/python-docs-samples/speech/grpc/grpc/lib/python2.7/site-packages/grpc/beta/client_adaptations.py", line 305, in __call
self.request_serializer, self._response_deserializer)
File "/Users/salvideoguy/pydev/py_projects/google_voice/python-docs-samples/speech/grpc/grpc/lib/python2.7/site-packages/grpc/beta/_client_adaptations.py", line 203, in _blocking_unary_unary
raise _abortion_error(rpc_error_call)
grpc.framework.interfaces.face.face.AbortionError: AbortionError(code=StatusCode.PERMISSION_DENIED, details="Google Cloud Speech API has not been used in project google.com:cloudsdktool before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/speech.googleapis.com/overview?project=google.com:cloudsdktool then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.")
The text was updated successfully, but these errors were encountered: