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

fix: remove the requirement for defining GOOGLE_APPLICATION_CREDENTIALS #585

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

srevinsaju
Copy link

GOOGLE_APPLICATION_CREDENTIALS or credential.json is not a requirement for using Speech Recognition. GOOGLE_APPLICATION_CREDENTIAL is the least preferred way of authenticating with a google service. When running on Google Cloud, they inherently have the credentials attached to the infrastructure (using IAM roles), so, GOOGLE_APPLICATION_CREDENTIALS is not a hard requirement. At any case, if any environment variable is not defined, or credentials.json is not provided or detected by google cloud package, the package will produce an exception. By leaving the authentication part to google.cloud package, we can remove the redundant checks from Speech Recognition's code.

`GOOGLE_APPLICATION_CREDENTIALS` or `credential.json` is not a requirement for using Speech Recognition. `GOOGLE_APPLICATION_CREDENTIAL` is the least preferred way of authenticating with a google service. When running on Google Cloud, they inherently have the credentials attached to the infrastructure (using IAM roles), so, `GOOGLE_APPLICATION_CREDENTIALS` is not a hard requirement. At any case, if any environment variable is not defined, or `credentials.json` is not provided or detected by google cloud package, the package will produce an exception. By leaving the authentication part to `google.cloud` package, we can remove the redundant checks from Speech Recognition's code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant