I want to run the google cloud speech python sample in my pycharm.
But encountered the
ApplicationDefaultCredentialsError: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
And I tried this solution but it doesn't work. Can anyone help me? Thanks!
PS: The google sample can run in the terminal well.
Well I found the solution myself,
Based on the ver 2016.2.3
Run->Edit Configurations->Environment variables->add ur credential path in the "..." window
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With