diff --git a/speech/snippets/README.rst b/speech/snippets/README.rst index edd05f661a0d..ae1fe3c58a6f 100644 --- a/speech/snippets/README.rst +++ b/speech/snippets/README.rst @@ -3,6 +3,10 @@ Google Cloud Speech API Python Samples =============================================================================== +.. 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/README.rst + + This directory contains samples for Google Cloud Speech API. The `Google Cloud Speech API`_ enables easy integration of Google speech recognition technologies into developer applications. Send audio and receive a text transcription from the Cloud Speech API service. - See the `migration guide`_ for information about migrating to Python client library v0.27. @@ -58,6 +62,10 @@ Samples Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.. 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/quickstart.py;speech/cloud-client/README.rst + + To run this sample: @@ -70,6 +78,10 @@ To run this sample: Transcribe +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.. 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.py;speech/cloud-client/README.rst + + To run this sample: @@ -79,24 +91,29 @@ To run this sample: $ python transcribe.py usage: transcribe.py [-h] path - + Google Cloud Speech API sample application using the REST API for batch processing. - + Example usage: python transcribe.py resources/audio.raw python transcribe.py gs://cloud-samples-tests/speech/brooklyn.flac - + positional arguments: path File or GCS path for audio file to be recognized - + optional arguments: -h, --help show this help message and exit + Transcribe async +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.. 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_async.py;speech/cloud-client/README.rst + + To run this sample: @@ -106,24 +123,29 @@ To run this sample: $ python transcribe_async.py usage: transcribe_async.py [-h] path - + Google Cloud Speech API sample application using the REST API for async batch processing. - + Example usage: python transcribe_async.py resources/audio.raw python transcribe_async.py gs://cloud-samples-tests/speech/vr.flac - + positional arguments: path File or GCS path for audio file to be recognized - + optional arguments: -h, --help show this help message and exit + Transcribe with word time offsets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.. 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_word_time_offsets.py;speech/cloud-client/README.rst + + To run this sample: @@ -133,23 +155,28 @@ To run this sample: $ python transcribe_word_time_offsets.py usage: transcribe_word_time_offsets.py [-h] path - + Google Cloud Speech API sample that demonstrates word time offsets. - + Example usage: python transcribe_word_time_offsets.py resources/audio.raw python transcribe_word_time_offsets.py gs://cloud-samples-tests/speech/vr.flac - + positional arguments: path File or GCS path for audio file to be recognized - + optional arguments: -h, --help show this help message and exit + Transcribe Streaming +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.. 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_streaming.py;speech/cloud-client/README.rst + + To run this sample: @@ -159,21 +186,22 @@ To run this sample: $ python transcribe_streaming.py usage: transcribe_streaming.py [-h] stream - + Google Cloud Speech API sample application using the streaming API. - + Example usage: python transcribe_streaming.py resources/audio.raw - + positional arguments: stream File to stream to the API - + optional arguments: -h, --help show this help message and exit + The client library ------------------------------------------------------------------------------- diff --git a/speech/snippets/README.rst.in b/speech/snippets/README.rst.in index c2589cd88282..ae84c9e824ad 100644 --- a/speech/snippets/README.rst.in +++ b/speech/snippets/README.rst.in @@ -36,3 +36,5 @@ samples: show_help: true cloud_client_library: true + +folder: speech/cloud-client \ No newline at end of file