Reputation: 1
I have submitted a request for google Audio to text. I received the name back, but I am unsure how to add private key info from file downloaded to:
curl -H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \ -H "Content-Type: application/json; charset=utf-8" \ "https://speech.googleapis.com/v1/operations/your-operation-name"
and then am I able to run the command from web or Mac?
Upvotes: 0
Views: 206
Reputation: 74
You can set up the environment variable to use the private key as mentioned here. Though the link talks about Vision API, the process is similar to use Cloud Speech-to-Text API. Also, here is additional documentation for authentication. This can be run from the web.
Upvotes: 1