File tree 5 files changed +26
-6
lines changed
5 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,11 @@ To run this sample:
83
83
84
84
usage: transcribe.py [-h] speech_file
85
85
86
+ Google Cloud Speech API sample application using the REST API for batch
87
+ processing.
88
+
89
+ Example usage: python transcribe.py resources/audio.raw
90
+
86
91
positional arguments:
87
92
speech_file Full path of audio file to be recognized
88
93
@@ -103,6 +108,11 @@ To run this sample:
103
108
104
109
usage: transcribe_async.py [-h] speech_file
105
110
111
+ Google Cloud Speech API sample application using the REST API for async
112
+ batch processing.
113
+
114
+ Example usage: python transcribe.py resources/audio.raw
115
+
106
116
positional arguments:
107
117
speech_file Full path of audio file to be recognized
108
118
Original file line number Diff line number Diff line change 13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
15
"""Google Cloud Speech API sample application using the REST API for batch
16
- processing."""
16
+ processing.
17
+
18
+ Example usage: python transcribe.py resources/audio.raw
19
+ """
17
20
18
21
# [START import_libraries]
19
22
import argparse
@@ -89,7 +92,9 @@ def main(speech_file):
89
92
90
93
# [START run_application]
91
94
if __name__ == '__main__' :
92
- parser = argparse .ArgumentParser ()
95
+ parser = argparse .ArgumentParser (
96
+ description = __doc__ ,
97
+ formatter_class = argparse .RawDescriptionHelpFormatter )
93
98
parser .add_argument (
94
99
'speech_file' , help = 'Full path of audio file to be recognized' )
95
100
args = parser .parse_args ()
Original file line number Diff line number Diff line change 13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
15
"""Google Cloud Speech API sample application using the REST API for async
16
- batch processing."""
16
+ batch processing.
17
+
18
+ Example usage: python transcribe.py resources/audio.raw
19
+ """
17
20
18
21
# [START import_libraries]
19
22
import argparse
@@ -101,7 +104,9 @@ def main(speech_file):
101
104
102
105
# [START run_application]
103
106
if __name__ == '__main__' :
104
- parser = argparse .ArgumentParser ()
107
+ parser = argparse .ArgumentParser (
108
+ description = __doc__ ,
109
+ formatter_class = argparse .RawDescriptionHelpFormatter )
105
110
parser .add_argument (
106
111
'speech_file' , help = 'Full path of audio file to be recognized' )
107
112
args = parser .parse_args ()
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ To run this sample:
98
98
Google Cloud Speech API sample application using the REST API for batch
99
99
processing.
100
100
101
- Example usage: python translate .py resources/audio.raw
101
+ Example usage: python transcribe .py resources/audio.raw
102
102
103
103
positional arguments:
104
104
speech_file Full path of audio file to be recognized
Original file line number Diff line number Diff line change 17
17
"""Google Cloud Speech API sample application using the REST API for batch
18
18
processing.
19
19
20
- Example usage: python translate .py resources/audio.raw
20
+ Example usage: python transcribe .py resources/audio.raw
21
21
"""
22
22
23
23
# [START import_libraries]
You can’t perform that action at this time.
0 commit comments