Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8efd5f1

Browse files
danaharonJon Wayne Parrott
authored andcommitted
Update transcribe_async.py to have long GCS flac example (GoogleCloudPlatform#904)
1 parent 32c44f7 commit 8efd5f1

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

language/cloud-client/README.rst

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,43 @@ To run this sample:
8282
$ python quickstart.py
8383
8484
85+
Snippets
86+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
87+
88+
89+
90+
To run this sample:
91+
92+
.. code-block:: bash
93+
94+
$ python snippets.py
95+
96+
usage: snippets.py [-h]
97+
{sentiment-text,sentiment-file,entities-text,entities-file,syntax-text,syntax-file}
98+
...
99+
100+
This application demonstrates how to perform basic operations with the
101+
Google Cloud Natural Language API
102+
103+
For more information, the documentation at
104+
https://cloud.google.com/natural-language/docs.
105+
106+
positional arguments:
107+
{sentiment-text,sentiment-file,entities-text,entities-file,syntax-text,syntax-file}
108+
sentiment-text Detects sentiment in the text.
109+
sentiment-file Detects sentiment in the file located in Google Cloud
110+
Storage.
111+
entities-text Detects entities in the text.
112+
entities-file Detects entities in the file located in Google Cloud
113+
Storage.
114+
syntax-text Detects syntax in the text.
115+
syntax-file Detects syntax in the file located in Google Cloud
116+
Storage.
117+
118+
optional arguments:
119+
-h, --help show this help message and exit
120+
121+
85122
86123
87124
The client library

speech/cloud-client/transcribe_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
Example usage:
2121
python transcribe_async.py resources/audio.raw
22-
python transcribe_async.py gs://cloud-samples-tests/speech/brooklyn.flac
22+
python transcribe_async.py gs://cloud-samples-tests/speech/vr.flac
2323
"""
2424

2525
import argparse

0 commit comments

Comments
 (0)