File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,8 @@ def main(speech_file):
6464 # https://goo.gl/KPZn97 for the full list.
6565 'encoding' : 'LINEAR16' , # raw 16-bit signed LE samples
6666 'sampleRate' : 16000 , # 16 khz
67- # See https://goo.gl/A9KJ1A for a list of supported languages.
67+ # See http://g.co/cloud/speech/docs/languages for a list of
68+ # supported languages.
6869 'languageCode' : 'en-US' , # a BCP-47 language tag
6970 },
7071 'audio' : {
Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ def main(speech_file):
6161 # https://goo.gl/KPZn97 for the full list.
6262 'encoding' : 'LINEAR16' , # raw 16-bit signed LE samples
6363 'sampleRate' : 16000 , # 16 khz
64- # See https://goo.gl/A9KJ1A for a list of supported languages.
64+ # See http://g.co/cloud/speech/docs/languages for a list of
65+ # supported languages.
6566 'languageCode' : 'en-US' , # a BCP-47 language tag
6667 },
6768 'audio' : {
@@ -88,7 +89,7 @@ def main(speech_file):
8889 if 'done' in response and response ['done' ]:
8990 break
9091
91- print (json .dumps (response ['response' ][ 'results' ] ))
92+ print (json .dumps (response ['response' ]))
9293
9394
9495# [START run_application]
You can’t perform that action at this time.
0 commit comments