@@ -268,6 +268,42 @@ To run this sample:
268
268
269
269
270
270
271
+ Transcribe with Model Selection
272
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
273
+
274
+ .. image :: https://gstatic.com/cloudssh/images/open-btn.png
275
+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=speech/cloud-client/transcribe_auto_punctuation.py,speech/cloud-client/README.rst
276
+
277
+
278
+
279
+
280
+ To run this sample:
281
+
282
+ .. code-block :: bash
283
+
284
+ $ python transcribe_model_selection.py
285
+
286
+ usage: transcribe_model_selection.py [-h]
287
+ [--model {command_and_search,phone_call,video,default}]
288
+ path
289
+
290
+ Google Cloud Speech API sample that demonstrates how to select the model
291
+ used for speech recognition.
292
+
293
+ Example usage:
294
+ python transcribe_model_selection.py resources/Google_Gnome.wav --model video
295
+ python transcribe_model_selection.py gs://cloud-samples-tests/speech/Google_Gnome.wav --model video
296
+
297
+ positional arguments:
298
+ path File or GCS path for audio file to be recognized
299
+
300
+ optional arguments:
301
+ -h, --help show this help message and exit
302
+ --model {command_and_search,phone_call,video,default}
303
+ The speech recognition model to use
304
+
305
+
306
+
271
307
Beta Samples
272
308
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
273
309
@@ -322,4 +358,4 @@ to `browse the source`_ and `report issues`_.
322
358
https://github.com/GoogleCloudPlatform/google-cloud-python/issues
323
359
324
360
325
- .. _Google Cloud SDK : https://cloud.google.com/sdk/
361
+ .. _Google Cloud SDK: https://cloud.google.com/sdk/
0 commit comments