Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a61fbd5

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

File tree

Expand file treeCollapse file tree

1 file changed

+37
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+37
-1
lines changed

‎speech/cloud-client/README.rst

Copy file name to clipboardExpand all lines: speech/cloud-client/README.rst
+37-1Lines changed: 37 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.