Skip to content

Fix frequent error sounds with Cancellable speech#11887

Merged
feerrenrut merged 1 commit into
masterfrom
fixCancellableSpeechError
Dec 4, 2020
Merged

Fix frequent error sounds with Cancellable speech#11887
feerrenrut merged 1 commit into
masterfrom
fixCancellableSpeechError

Conversation

@feerrenrut

Copy link
Copy Markdown
Contributor

Link to issue number:

None

Summary of the issue:

When moving through email items in focus mode in Gmail, errors occur, you may have to wait for the utterance to finish speaking.

Fix an issue introduced with #11865, which incorrectly used the return value of _checkForCancellations
to indicate error/success, rather than utterance canceled (correctly) or no cancellations found.

Description of how this pull request fixes the issue:

Instead, an exception is raised when the method can not complete, and the error is logged in this case.

Testing performed:

Ran locally with cancellable speech enabled.

Known issues with pull request:

None

Change log entry:

None

Fix an issue introduced with #11865, which incorrectly used the return value of _checkForCancellations
to indicate error/success, rather than utterance canceled (correctly) or no cancellations found.

Instead, an exception is raised when the method can not complete, and the error is logged in this case.
@LeonarddeR

Copy link
Copy Markdown
Collaborator

I'm getting errors like this pretty often:

ERROR - speech.manager.SpeechManager._buildNextUtterance (14:18:00.445) - MainThread (6356):
Checking for cancellations failed, cancelling sequence

Could this be a debugWarning or warning instead?

@feerrenrut

Copy link
Copy Markdown
Contributor Author

@LeonarddeR this PR intends to fix exactly that issue. Now you should only get that error when there is a true error case, rather than when there was a cancelled utterance.

@feerrenrut feerrenrut merged commit f99644e into master Dec 4, 2020
@feerrenrut feerrenrut deleted the fixCancellableSpeechError branch December 4, 2020 03:20
@nvaccessAuto nvaccessAuto added this to the 2020.4 milestone Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants