Make eSpeak's sonic boost be activated only when rate boost is enabled.#13893
Merged
Conversation
See test results for failed build of commit 3f3d8839a5 |
seanbudd
reviewed
Jul 13, 2022
See test results for failed build of commit 01923f8941 |
Contributor
Author
|
@seanbudd, this PR is ready. |
seanbudd
approved these changes
Jul 13, 2022
See test results for failed build of commit fb3da566bb |
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:
A partial fix for issue #13876.
Summary of the issue:
With eSpeak, when rate boost is off, the speech rate is slightly higher (7% according to espeak-ng/espeak-ng#131 (comment)) when rate is 99% than when rate is 100%.
Description of user facing changes
With eSpeak, a speech rate of 100% corresponds to the fastest speech rate without rate boost; no more rate drop between 99% and 100%
Description of development approach
_espeak.maxRateis the rate used when NVDA speech rate is 100%.So set
_espeak.maxRateto 449 instead of 450. Indeed according to espeak-ng/espeak-ng#131:This allows to have a continuous increasing of speech rate when rate boost is off and to reserve the use of the sonic library for rate boost on.
If one day, eSpeak turns back to 450 for maxRate (what seems unlikely), we may revert this PR's content to follow eSpeak's decision.
Testing strategy:
Read the following lines in American English:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19
Tested with rate from 0%, 10%, 20%, ..., 90%, 91%, ..., 99%, 100%
Checked continuous increasing of speed.
Known issues with pull request:
The 7% speech-rate drop is still present between 18% and 19% when rate boost is on. This has to be fixed on eSpeak's side.
Change log entries:
Bug fixes
When rate boost is off, eSpeak's rate does not drop anymore between rates 99% and 100%. (#13876)Code Review Checklist: