-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print all results, not all alternatives #1098
Conversation
# 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean that there is always only one result
in each response
of streaming_recognize
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see - thanks for the clarification.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see - thanks for the clarification.
No description provided.