diff --git a/speech/google/cloud/speech/client.py b/speech/google/cloud/speech/client.py index 4a5250f55bf1..94716086b3a2 100644 --- a/speech/google/cloud/speech/client.py +++ b/speech/google/cloud/speech/client.py @@ -240,8 +240,7 @@ def streaming_recognize(self, sample, language_code=None, single_utterance, interim_results) for response in responses: - results = getattr(response, 'results', []) - for result in results: + for result in response.results: if result.is_final or interim_results: yield [Alternative.from_pb(alternative) for alternative in result.alternatives]