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

Exceptions running speech samples on OSX #510

Closed
thecloudist opened this issue Sep 8, 2016 · 2 comments
Closed

Exceptions running speech samples on OSX #510

thecloudist opened this issue Sep 8, 2016 · 2 comments
Assignees
Labels

Comments

@thecloudist
Copy link

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.")

@jerjou
Copy link
Contributor

jerjou commented Sep 9, 2016

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.

@thecloudist
Copy link
Author

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.
After that, everything including the api-client and the grpc samples worked flawlessly.

Now, I am porting this whole thing to Raspberry Pi on my GoPiGo.
Cheers!

telpirion pushed a commit that referenced this issue Jan 18, 2023
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>
dandhlee pushed a commit that referenced this issue Feb 6, 2023
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>
telpirion pushed a commit that referenced this issue Mar 13, 2023
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>
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

4 participants