-
Notifications
You must be signed in to change notification settings - Fork 1.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
Speech: 403 Request had insufficient authentication scopes. #5006
Comments
You can't use the drive scope to access Cloud Speech, you need to use to google-cloud-platform scope, or just leave scope unspecified and the library will handle it. |
@sohamsil I'm not sure if you saw this, but this was the answer to your question. Please feel free to ask if you have any more questions. |
@jonparrott @chemelnucfin Thanks a lot for the help. Removing the scope helped and the code executes fine on my machine. However, when I tried to run the same on Cloudshell it gave an Note: After running
|
@sohamsil you should use a virtualenv. See https://cloud.google.com/python/setup#installing_and_using_virtualenv |
@jonparrott It worked in the cloud shell as well. You're right! I had missed out on creating a |
replace this line:
with this:
and if you did not pass, delete (token.json) folder and try again |
See #3212 for more information
Getting the same error and also it gave me 403 request error.
google.api_core.exceptions.PermissionDenied: 403 Request had insufficient authentication scopes.
Note: Google SPeech API is enabled and I am using Python 3.6
Here is the code, thank you for your help.
The text was updated successfully, but these errors were encountered: