7

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.

Community
  • 1
  • 1
SHI Zhong Ping
  • 545
  • 4
  • 11
  • Post your code, preferably as a https://stackoverflow.com/help/mcve and the error that you get. – Robert Oct 04 '16 at 03:42

1 Answers1

10

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

SHI Zhong Ping
  • 545
  • 4
  • 11