Skip to content

Commit

Permalink
speech: updated README for model selection sample [(#1892)](GoogleClo…
Browse files Browse the repository at this point in the history
  • Loading branch information
anguillanneuf authored and busunkim96 committed Sep 3, 2020
1 parent 3a1f71b commit a9d5752
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion google-cloud-speech/samples/snippets/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,42 @@ To run this sample:
Transcribe with Model Selection
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

.. image:: https://gstatic.com/cloudssh/images/open-btn.png
: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




To run this sample:

.. code-block:: bash
$ python transcribe_model_selection.py
usage: transcribe_model_selection.py [-h]
[--model {command_and_search,phone_call,video,default}]
path
Google Cloud Speech API sample that demonstrates how to select the model
used for speech recognition.
Example usage:
python transcribe_model_selection.py resources/Google_Gnome.wav --model video
python transcribe_model_selection.py gs://cloud-samples-tests/speech/Google_Gnome.wav --model video
positional arguments:
path File or GCS path for audio file to be recognized
optional arguments:
-h, --help show this help message and exit
--model {command_and_search,phone_call,video,default}
The speech recognition model to use
Beta Samples
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Expand Down Expand Up @@ -322,4 +358,4 @@ to `browse the source`_ and `report issues`_.
https://github.com/GoogleCloudPlatform/google-cloud-python/issues
.. _Google Cloud SDK: https://cloud.google.com/sdk/
.. _Google Cloud SDK: https://cloud.google.com/sdk/

0 comments on commit a9d5752

Please sign in to comment.