0 votes
1 view
in GCP by (25k points)
recategorized by

I'm playing with Google Speech Recognition API

After a successfully Getting started I'm trying to understand and made some changes in this first example but I don't know what "gs" protocol is and how to set it to use my own audio file.

sync-request.json

{

  "config": {

      "encoding":"FLAC",

      "sample_rate": 16000

  },

  "audio": {

      "uri":"gs://cloud-samples-tests/speech/brooklyn.flac"

  }

}

I tried to change the gs protocol to the HTTP protocol but doesn't work.

Thanks in advance. 

1 Answer

+1 vote
by (63.3k points)
selected by
 
Best answer

You can access the file that you mention as follows:

https://storage.googleapis.com/cloud-samples-tests/speech/brooklyn.flac

So, if you create and upload your own file in Google Storage like I'm doing while trying to test the same API you are using, the "equivalence" is the following:

https://storage.googleapis.com/ 

translates to

gs://

and vice-versa.

I hope this helps.

Related questions

0 votes
1 answer
asked Sep 15, 2019 in Java by Suresh (3.4k points)
0 votes
1 answer
asked Jul 17, 2019 in Java by adam96 (800 points)
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...