Log never handled speech indexes, and don't make the speech queue lag behind#9946
Merged
Conversation
Collaborator
Author
|
@jcsteh: I also asked you for a quick review as you are the initial author of speech refactor. May be I'm missing something essential here. |
feerrenrut
reviewed
Jul 19, 2019
feerrenrut
left a comment
Contributor
There was a problem hiding this comment.
Will these indexes that are never handled continue to accumulate? With this change are they ever removed?
Collaborator
Author
Yes, they are removed in the line: |
feerrenrut
approved these changes
Jul 19, 2019
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to issue number:
Related to #9937
Summary of the issue:
From the speech manager docs:
_handleIndexcalls_removeCompletedFromQueuefor the specified index. However, that code did check whethercurrentIndex >= lastCommand.index. In the case where the speech synthesizer sometimes doesn't send a notification for an index, this means the following:_removeCompletedFromQueueremoves the sequence from the queue that is associated with the missed index, thereby ignoring the current index._removeCompletedFromQueuechecks the missed index to see whether it is the index for the end of an utterance.Description of how this pull request fixes the issue:
Log cases of indexes we missed, and clean up the sequences for the missed indexes.
Testing performed:
Tested with #9937 that it did no longer stop speaking with espeak, which tends to miss indexes.
Known issues with pull request:
It really looks like espeak's index handling is slightly buggy.
Change log entry:
None