Skip to content

Commit 57bb557

Browse files
committed
Return directly from async_recognize call.
1 parent 97b2528 commit 57bb557

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

speech/google/cloud/speech/client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,8 @@ def async_recognize(self, sample, language_code=None,
118118
raise ValueError('Only LINEAR16 encoding is supported by '
119119
'asynchronous speech requests.')
120120
api = self.speech_api
121-
response = api.async_recognize(sample, language_code, max_alternatives,
122-
profanity_filter, speech_context)
123-
return response
121+
return api.async_recognize(sample, language_code, max_alternatives,
122+
profanity_filter, speech_context)
124123

125124
@staticmethod
126125
def sample(content=None, source_uri=None, encoding=None,

0 commit comments

Comments
 (0)