0
votes

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?

1

1 Answers

0
votes

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.