Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update stale shortlink. #603

Merged
merged 1 commit into from
Oct 21, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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