FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Print all results, not all alternatives by jerjou · Pull Request #1098 · GoogleCloudPlatform/python-docs-samples · GitHub

Print all results, not all alternatives - #1098

Merged
jerjou merged 1 commit into
masterfrom
speech-results
Sep 7, 2017
Merged

Print all results, not all alternatives#1098
jerjou merged 1 commit into
masterfrom
speech-results

Conversation

jerjou commented Aug 31, 2017

Copy link
Copy Markdown
Contributor

No description provided.

jerjou requested review from dizcology and theacodes August 31, 2017 17:51
googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 31, 2017
jerjou changed the title py35(sample='./speech/cloud-client')Print all results, not all alternatives Print all results, not all alternatives Sep 1, 2017
# There could be multiple results in each response.
# The `results` list is consecutive. For streaming, we only care about
# the first result being considered, since once it's `is_final`, it
# moves on to considering the next utterance.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Does this mean that there is always only one result in each response of streaming_recognize?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

a) What're you doing doing a code review on a holiday?? tsk tsk
b) Mm... if interim_results is False, then yes - there will only be one result. But if interim_results is True, then there can be 0 or one is_final result, followed by 0 to many interim (is_final=False) results. I believe different results correspond to consecutive parts of the audio stream. See here

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I see - thanks for the clarification.

dizcology left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good to me 👍

# There could be multiple results in each response.
# The `results` list is consecutive. For streaming, we only care about
# the first result being considered, since once it's `is_final`, it
# moves on to considering the next utterance.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I see - thanks for the clarification.

jerjou merged commit cfa07e8 into master Sep 7, 2017
jerjou deleted the speech-results branch September 7, 2017 17:27
atulep pushed a commit to googleapis/google-cloud-python that referenced this pull request Apr 6, 2023
atulep pushed a commit to googleapis/google-cloud-python that referenced this pull request Apr 6, 2023
atulep pushed a commit to googleapis/google-cloud-python that referenced this pull request Apr 18, 2023
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 22, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL