diff --git a/speech/api-client/transcribe.py b/speech/api-client/transcribe.py index 511d32f4e7f..52a459e98de 100644 --- a/speech/api-client/transcribe.py +++ b/speech/api-client/transcribe.py @@ -64,7 +64,8 @@ def main(speech_file): # https://goo.gl/KPZn97 for the full list. 'encoding': 'LINEAR16', # raw 16-bit signed LE samples 'sampleRate': 16000, # 16 khz - # See https://goo.gl/A9KJ1A for a list of supported languages. + # See http://g.co/cloud/speech/docs/languages for a list of + # supported languages. 'languageCode': 'en-US', # a BCP-47 language tag }, 'audio': { diff --git a/speech/api-client/transcribe_async.py b/speech/api-client/transcribe_async.py index 1d992109faf..ad47671e4c8 100644 --- a/speech/api-client/transcribe_async.py +++ b/speech/api-client/transcribe_async.py @@ -61,7 +61,8 @@ def main(speech_file): # https://goo.gl/KPZn97 for the full list. 'encoding': 'LINEAR16', # raw 16-bit signed LE samples 'sampleRate': 16000, # 16 khz - # See https://goo.gl/A9KJ1A for a list of supported languages. + # See http://g.co/cloud/speech/docs/languages for a list of + # supported languages. 'languageCode': 'en-US', # a BCP-47 language tag }, 'audio': { @@ -88,7 +89,7 @@ def main(speech_file): if 'done' in response and response['done']: break - print(json.dumps(response['response']['results'])) + print(json.dumps(response['response'])) # [START run_application]