Skip to content

Update shortlinks. #519

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

Merged
merged 1 commit into from
Sep 13, 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
4 changes: 2 additions & 2 deletions speech/api-client/transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ def main(speech_file):
body={
'config': {
# There are a bunch of config options you can specify. See
# https://goo.gl/EPjAup for the full list.
# https://goo.gl/KPZn97 for the full list.
'encoding': 'LINEAR16', # raw 16-bit signed LE samples
'sampleRate': 16000, # 16 khz
# See https://goo.gl/DPeVFW for a list of supported languages.
# See https://goo.gl/A9KJ1A for a list of supported languages.
'languageCode': 'en-US', # a BCP-47 language tag
},
'audio': {
Expand Down
4 changes: 2 additions & 2 deletions speech/api-client/transcribe_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ def main(speech_file):
body={
'config': {
# There are a bunch of config options you can specify. See
# https://goo.gl/EPjAup for the full list.
# https://goo.gl/KPZn97 for the full list.
'encoding': 'LINEAR16', # raw 16-bit signed LE samples
'sampleRate': 16000, # 16 khz
# See https://goo.gl/DPeVFW for a list of supported languages.
# See https://goo.gl/A9KJ1A for a list of supported languages.
'languageCode': 'en-US', # a BCP-47 language tag
},
'audio': {
Expand Down
2 changes: 1 addition & 1 deletion speech/grpc/transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def main(input_uri, encoding, sample_rate):
response = service.SyncRecognize(cloud_speech.SyncRecognizeRequest(
config=cloud_speech.RecognitionConfig(
# There are a bunch of config options you can specify. See
# https://goo.gl/A6xv5G for the full list.
# https://goo.gl/KPZn97 for the full list.
encoding=encoding, # one of LINEAR16, FLAC, MULAW, AMR, AMR_WB
sample_rate=sample_rate, # the rate in hertz
# See
Expand Down
2 changes: 1 addition & 1 deletion speech/grpc/transcribe_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def main(input_uri, encoding, sample_rate):
response = service.AsyncRecognize(cloud_speech_pb2.AsyncRecognizeRequest(
config=cloud_speech_pb2.RecognitionConfig(
# There are a bunch of config options you can specify. See
# https://goo.gl/A6xv5G for the full list.
# https://goo.gl/KPZn97 for the full list.
encoding=encoding, # one of LINEAR16, FLAC, MULAW, AMR, AMR_WB
sample_rate=sample_rate, # the rate in hertz
# See
Expand Down
2 changes: 1 addition & 1 deletion speech/grpc/transcribe_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def request_stream(stop_audio, channels=CHANNELS, rate=RATE, chunk=CHUNK):
# server knows how to interpret it.
recognition_config = cloud_speech.RecognitionConfig(
# There are a bunch of config options you can specify. See
# https://goo.gl/A6xv5G for the full list.
# https://goo.gl/KPZn97 for the full list.
encoding='LINEAR16', # raw 16-bit signed LE samples
sample_rate=rate, # the rate in hertz
# See
Expand Down