Skip to content

Commit a61fbd5

Browse files
speech: updated README for model selection sample (GoogleCloudPlatform#1892)
1 parent eaf3d86 commit a61fbd5

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

speech/cloud-client/README.rst

+37-1
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,42 @@ To run this sample:
268268
269269
270270
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+
271307
Beta Samples
272308
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
273309
@@ -322,4 +358,4 @@ to `browse the source`_ and `report issues`_.
322358
https://github.com/GoogleCloudPlatform/google-cloud-python/issues
323359
324360
325-
.. _Google Cloud SDK: https://cloud.google.com/sdk/
361+
.. _Google Cloud SDK: https://cloud.google.com/sdk/

0 commit comments

Comments
 (0)