Skip to content

Commit d2fb6b6

Browse files
Python GAPIC: Speech v1 (googleapis#3678)
1 parent e59d305 commit d2fb6b6

File tree

4 files changed

+153
-46
lines changed

4 files changed

+153
-46
lines changed

speech/google/cloud/gapic/speech/v1/enums.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ class RecognitionConfig(object):
1818
class AudioEncoding(object):
1919
"""
2020
Audio encoding of the data sent in the audio message. All encodings support
21-
only 1 channel (mono) audio. Only ``FLAC`` includes a header that describes
22-
the bytes of audio that follow the header. The other encodings are raw
23-
audio bytes with no header.
21+
only 1 channel (mono) audio. Only ``FLAC`` and ``WAV`` include a header that
22+
describes the bytes of audio that follow the header. The other encodings
23+
are raw audio bytes with no header.
2424
2525
For best results, the audio source should be captured and transmitted using
2626
a lossless encoding (``FLAC`` or ``LINEAR16``). Recognition accuracy may be

speech/google/cloud/gapic/speech/v1/speech_client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ def recognize(self, config, audio, options=None):
197197
:exc:`google.gax.errors.GaxError` if the RPC is aborted.
198198
:exc:`ValueError` if the parameters are invalid.
199199
"""
200-
# Create the request object.
201200
request = cloud_speech_pb2.RecognizeRequest(config=config, audio=audio)
202201
return self._recognize(request, options)
203202

@@ -244,7 +243,6 @@ def long_running_recognize(self, config, audio, options=None):
244243
:exc:`google.gax.errors.GaxError` if the RPC is aborted.
245244
:exc:`ValueError` if the parameters are invalid.
246245
"""
247-
# Create the request object.
248246
request = cloud_speech_pb2.LongRunningRecognizeRequest(
249247
config=config, audio=audio)
250248
return google.gax._OperationFuture(

speech/google/cloud/gapic/speech/v1/speech_client_config.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"DEADLINE_EXCEEDED",
77
"UNAVAILABLE"
88
],
9-
"non_idempotent": [
10-
"UNAVAILABLE"
11-
]
9+
"non_idempotent": []
1210
},
1311
"retry_params": {
1412
"default": {

0 commit comments

Comments
 (0)