From 4b6a79bdb8229b4cc7a4a1846af7b4824817b0a3 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Tue, 4 Dec 2018 10:28:51 -0800 Subject: [PATCH] speech: updated README for model selection sample [(#1892)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/1892) --- .../samples/snippets/README.rst | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/packages/google-cloud-python-speech/samples/snippets/README.rst b/packages/google-cloud-python-speech/samples/snippets/README.rst index 140720660fff..f43716a5789a 100644 --- a/packages/google-cloud-python-speech/samples/snippets/README.rst +++ b/packages/google-cloud-python-speech/samples/snippets/README.rst @@ -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 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @@ -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/ \ No newline at end of file +.. _Google Cloud SDK: https://cloud.google.com/sdk/