GeezerVison is showing github.com — Update shortlinks. (#519) · fullstackguy/python-docs-samples@5d44e21
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: speech/api-client/transcribe.py +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -61,10 +61,10 @@ def main(speech_file): | 61 | 61 | body={ | 62 | 62 | 'config': { | 63 | 63 | # There are a bunch of config options you can specify. See | 64 | | - # https://goo.gl/EPjAup for the full list. | | 64 | + # https://goo.gl/KPZn97 for the full list. | 65 | 65 | 'encoding': 'LINEAR16', # raw 16-bit signed LE samples | 66 | 66 | 'sampleRate': 16000, # 16 khz | 67 | | - # See https://goo.gl/DPeVFW for a list of supported languages. | | 67 | + # See https://goo.gl/A9KJ1A for a list of supported languages. | 68 | 68 | 'languageCode': 'en-US', # a BCP-47 language tag | 69 | 69 | }, | 70 | 70 | 'audio': { | |
Collapse file Copy file name to clipboardExpand all lines: speech/api-client/transcribe_async.py +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -58,10 +58,10 @@ def main(speech_file): | 58 | 58 | body={ | 59 | 59 | 'config': { | 60 | 60 | # There are a bunch of config options you can specify. See | 61 | | - # https://goo.gl/EPjAup for the full list. | | 61 | + # https://goo.gl/KPZn97 for the full list. | 62 | 62 | 'encoding': 'LINEAR16', # raw 16-bit signed LE samples | 63 | 63 | 'sampleRate': 16000, # 16 khz | 64 | | - # See https://goo.gl/DPeVFW for a list of supported languages. | | 64 | + # See https://goo.gl/A9KJ1A for a list of supported languages. | 65 | 65 | 'languageCode': 'en-US', # a BCP-47 language tag | 66 | 66 | }, | 67 | 67 | 'audio': { | |
Collapse file Copy file name to clipboardExpand all lines: speech/grpc/transcribe.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -57,7 +57,7 @@ def main(input_uri, encoding, sample_rate): | 57 | 57 | response = service.SyncRecognize(cloud_speech.SyncRecognizeRequest( | 58 | 58 | config=cloud_speech.RecognitionConfig( | 59 | 59 | # There are a bunch of config options you can specify. See | 60 | | - # https://goo.gl/A6xv5G for the full list. | | 60 | + # https://goo.gl/KPZn97 for the full list. | 61 | 61 | encoding=encoding, # one of LINEAR16, FLAC, MULAW, AMR, AMR_WB | 62 | 62 | sample_rate=sample_rate, # the rate in hertz | 63 | 63 | # See | |
Collapse file Copy file name to clipboardExpand all lines: speech/grpc/transcribe_async.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -60,7 +60,7 @@ def main(input_uri, encoding, sample_rate): | 60 | 60 | response = service.AsyncRecognize(cloud_speech_pb2.AsyncRecognizeRequest( | 61 | 61 | config=cloud_speech_pb2.RecognitionConfig( | 62 | 62 | # There are a bunch of config options you can specify. See | 63 | | - # https://goo.gl/A6xv5G for the full list. | | 63 | + # https://goo.gl/KPZn97 for the full list. | 64 | 64 | encoding=encoding, # one of LINEAR16, FLAC, MULAW, AMR, AMR_WB | 65 | 65 | sample_rate=sample_rate, # the rate in hertz | 66 | 66 | # See | |
Collapse file Copy file name to clipboardExpand all lines: speech/grpc/transcribe_streaming.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -90,7 +90,7 @@ def request_stream(stop_audio, channels=CHANNELS, rate=RATE, chunk=CHUNK): | 90 | 90 | # server knows how to interpret it. | 91 | 91 | recognition_config = cloud_speech.RecognitionConfig( | 92 | 92 | # There are a bunch of config options you can specify. See | 93 | | - # https://goo.gl/A6xv5G for the full list. | | 93 | + # https://goo.gl/KPZn97 for the full list. | 94 | 94 | encoding='LINEAR16', # raw 16-bit signed LE samples | 95 | 95 | sample_rate=rate, # the rate in hertz | 96 | 96 | # See | |
|