Skip to content

Commit

Permalink
quickstart: print out all results. [(#1108)](#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerjou authored and busunkim96 committed Sep 3, 2020
1 parent ca29935 commit 545f132
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions speech/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 545f132

Please sign in to comment.