Skip to content

Commit 84c8ce3

Browse files
authored
Update stale shortlink. (#603)
Print entire response, since may not have result.
1 parent 2d67133 commit 84c8ce3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

speech/api-client/transcribe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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': {

speech/api-client/transcribe_async.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)