Skip to content

Commit

Permalink
quickstart: print out all results. [(#1108)](GoogleCloudPlatform/pyth…
Browse files Browse the repository at this point in the history
  • Loading branch information
jerjou authored and busunkim96 committed Sep 3, 2020
1 parent e5f3a9d commit ae66917
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/google-cloud-speech/samples/snippets/quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ def run_quickstart():

# Detects speech in the audio file
response = client.recognize(config, audio)
alternatives = response.results[0].alternatives

for alternative in alternatives:
print('Transcript: {}'.format(alternative.transcript))
for result in response.results:
print('Transcript: {}'.format(result.alternatives[0].transcript))
# [END speech_quickstart]


Expand Down

0 comments on commit ae66917

Please sign in to comment.