We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cb328a commit d306ba5Copy full SHA for d306ba5
packages/google-cloud-python-speech/samples/snippets/quickstart.py
@@ -50,10 +50,9 @@ def run_quickstart():
50
51
# Detects speech in the audio file
52
response = client.recognize(config, audio)
53
- alternatives = response.results[0].alternatives
54
55
- for alternative in alternatives:
56
- print('Transcript: {}'.format(alternative.transcript))
+ for result in response.results:
+ print('Transcript: {}'.format(result.alternatives[0].transcript))
57
# [END speech_quickstart]
58
59
0 commit comments