Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

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 5fd8742 commit 2cce484
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions 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 2cce484

Please sign in to comment.