Skip to content

Commit 54904e1

Browse files
michaelawyudandhlee
michaelawyu
authored andcommitted
Added "Open in Cloud Shell" buttons to README files [(#1254)](#1254)
1 parent e405825 commit 54904e1

File tree

2 files changed

+46
-16
lines changed

2 files changed

+46
-16
lines changed

speech/snippets/README.rst

Lines changed: 44 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Google Cloud Speech API Python Samples
44
===============================================================================
55

6+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
7+
: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
8+
9+
610
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.
711

812
- See the `migration guide`_ for information about migrating to Python client library v0.27.
@@ -58,6 +62,10 @@ Samples
5862
Quickstart
5963
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6064

65+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
66+
: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
67+
68+
6169

6270

6371
To run this sample:
@@ -70,6 +78,10 @@ To run this sample:
7078
Transcribe
7179
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7280

81+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
82+
: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
83+
84+
7385

7486

7587
To run this sample:
@@ -79,24 +91,29 @@ To run this sample:
7991
$ python transcribe.py
8092
8193
usage: transcribe.py [-h] path
82-
94+
8395
Google Cloud Speech API sample application using the REST API for batch
8496
processing.
85-
97+
8698
Example usage:
8799
python transcribe.py resources/audio.raw
88100
python transcribe.py gs://cloud-samples-tests/speech/brooklyn.flac
89-
101+
90102
positional arguments:
91103
path File or GCS path for audio file to be recognized
92-
104+
93105
optional arguments:
94106
-h, --help show this help message and exit
95107
96108
109+
97110
Transcribe async
98111
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
99112

113+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
114+
: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
115+
116+
100117

101118

102119
To run this sample:
@@ -106,24 +123,29 @@ To run this sample:
106123
$ python transcribe_async.py
107124
108125
usage: transcribe_async.py [-h] path
109-
126+
110127
Google Cloud Speech API sample application using the REST API for async
111128
batch processing.
112-
129+
113130
Example usage:
114131
python transcribe_async.py resources/audio.raw
115132
python transcribe_async.py gs://cloud-samples-tests/speech/vr.flac
116-
133+
117134
positional arguments:
118135
path File or GCS path for audio file to be recognized
119-
136+
120137
optional arguments:
121138
-h, --help show this help message and exit
122139
123140
141+
124142
Transcribe with word time offsets
125143
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
126144

145+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
146+
: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
147+
148+
127149

128150

129151
To run this sample:
@@ -133,23 +155,28 @@ To run this sample:
133155
$ python transcribe_word_time_offsets.py
134156
135157
usage: transcribe_word_time_offsets.py [-h] path
136-
158+
137159
Google Cloud Speech API sample that demonstrates word time offsets.
138-
160+
139161
Example usage:
140162
python transcribe_word_time_offsets.py resources/audio.raw
141163
python transcribe_word_time_offsets.py gs://cloud-samples-tests/speech/vr.flac
142-
164+
143165
positional arguments:
144166
path File or GCS path for audio file to be recognized
145-
167+
146168
optional arguments:
147169
-h, --help show this help message and exit
148170
149171
172+
150173
Transcribe Streaming
151174
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
152175

176+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
177+
: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
178+
179+
153180

154181

155182
To run this sample:
@@ -159,21 +186,22 @@ To run this sample:
159186
$ python transcribe_streaming.py
160187
161188
usage: transcribe_streaming.py [-h] stream
162-
189+
163190
Google Cloud Speech API sample application using the streaming API.
164-
191+
165192
Example usage:
166193
python transcribe_streaming.py resources/audio.raw
167-
194+
168195
positional arguments:
169196
stream File to stream to the API
170-
197+
171198
optional arguments:
172199
-h, --help show this help message and exit
173200
174201
175202
176203
204+
177205
The client library
178206
-------------------------------------------------------------------------------
179207

speech/snippets/README.rst.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ samples:
3636
show_help: true
3737

3838
cloud_client_library: true
39+
40+
folder: speech/cloud-client

0 commit comments

Comments
 (0)