Skip to content

Commit

Permalink
Update stale shortlink. (#603)
Browse files Browse the repository at this point in the history
Print entire response, since may not have result.
  • Loading branch information
jerjou authored Oct 21, 2016
1 parent 2d67133 commit 84c8ce3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion speech/api-client/transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand Down
5 changes: 3 additions & 2 deletions speech/api-client/transcribe_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand All @@ -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]
Expand Down

0 comments on commit 84c8ce3

Please sign in to comment.