File tree 2 files changed +5
-3
lines changed
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):
64
64
# https://goo.gl/KPZn97 for the full list.
65
65
'encoding' : 'LINEAR16' , # raw 16-bit signed LE samples
66
66
'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.
68
69
'languageCode' : 'en-US' , # a BCP-47 language tag
69
70
},
70
71
'audio' : {
Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ def main(speech_file):
61
61
# https://goo.gl/KPZn97 for the full list.
62
62
'encoding' : 'LINEAR16' , # raw 16-bit signed LE samples
63
63
'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.
65
66
'languageCode' : 'en-US' , # a BCP-47 language tag
66
67
},
67
68
'audio' : {
@@ -88,7 +89,7 @@ def main(speech_file):
88
89
if 'done' in response and response ['done' ]:
89
90
break
90
91
91
- print (json .dumps (response ['response' ][ 'results' ] ))
92
+ print (json .dumps (response ['response' ]))
92
93
93
94
94
95
# [START run_application]
You can’t perform that action at this time.
0 commit comments