-
-
Notifications
You must be signed in to change notification settings - Fork 638
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
Fix ZeroDivisionError when pitch is 0 announcing 'cap' #13921
base: master
Are you sure you want to change the base?
Conversation
See test results for failed build of commit 691b6d037d |
May also be worth considering: #9811 |
Using this approach, eSpeak fails to change pitch for 'cap', as eSpeak scales the pitch by multiplying by the base pitch of 0. An alternative approach is to make NVDA use the range 1-100 instead of 0-100. |
Next action: report issue to espeak. |
It turns out this bug was with NVDA. The eSpeak synth driver code to handle prosody commands did not handle the |
I'm going to look into dropping the offset attribute from all BaseProsodyCommands as it is not supported correctly in general |
Hi, |
@codeofdusk - this can be fixed in a way which temporarily preserves backwards compatibility |
Is this PR blocked or waiting on anything? I (got here following a user still reporting the original issue) |
@Qchristensen - I think a fix in eSpeak is required for part of the fix, but this PR could probably be revived |
Link to issue number:
Fixes #10940
Summary of the issue:
NVDA fails to announce "cap" for capital letters when synthesizer pitch is set to 0.
This is because of a division by 0 error when scaling the pitch change for "cap".
Description of user facing changes
NVDA successfully announces "cap" for capital letters as if synthesizer pitch was set to 1.
Description of development approach
To fix this, use a value of 1 instead of 0 when calculating the pitch for announcing "cap".
Testing strategy:
Manually test STR with notepad
Known issues with pull request:
None
Change log entries:
Bug fixes
Code Review Checklist: