0 votes
1 view
in GCP by (19.8k 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.



  "config": {


      "sample_rate": 16000


  "audio": {




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

Thanks in advance. 

1 Answer

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

You can access the file that you mention as follows:


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:


translates to


and vice-versa.

I hope this helps.

Related questions

0 votes
1 answer
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
Welcome to Intellipaat Community. Get your technical queries answered by top developers !