I'm new to the Google Cloud Platform and was happy to find this repo of examples.
However, when I simply follow the instructions I seem to get an auth error?
node recognize.js stream ./resources/audio.raw -e LINEAR16 -r 16000
Gives me
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Could not load the default credentials. Browse to https://developers.google.com/accounts/docs/application-default-credentials for more information.
Which points to a page full of information about authentication, except the information I'm looking for: how can I simply pass an API key to the Speech client so it just simply works?
Could the documention be updated to instruct step-by-step how to do auth? Would it be possible to make that work something like
Speech({
apikey: [somekey]
});
? Or is there a reason not to make it that easy?
Right now it feels like there are so many implicit assumptions and things around auth that scare newcomers away.
Would be happy to help in any way once I understand how it works.
I'm new to the Google Cloud Platform and was happy to find this repo of examples.
However, when I simply follow the instructions I seem to get an auth error?
Gives me
Which points to a page full of information about authentication, except the information I'm looking for: how can I simply pass an API key to the Speech client so it just simply works?
Could the documention be updated to instruct step-by-step how to do auth? Would it be possible to make that work something like
? Or is there a reason not to make it that easy?
Right now it feels like there are so many implicit assumptions and things around auth that scare newcomers away.
Would be happy to help in any way once I understand how it works.