nvda
6c981c64 - Fix MathCAT pauses at rate 0 and with eSpeak rate boost on (#21019)

Commit
14 days ago
Fix MathCAT pauses at rate 0 and with eSpeak rate boost on (#21019) Fixes #19894 Summary of the issue: MathCAT scales the duration of its pauses by the synthesizer rate, but ignored rate boost, so pauses were as long with rate boost on as off. With the speech rate at 0%, this also raised a division by zero error. Description of user facing changes: MathCAT no longer fails at a 0% speech rate, and its pauses are shorter when eSpeak rate boost is enabled. Description of developer facing changes: None. Description of development approach: The wpm value in convertSSMLTextForNVDA is multiplied by the synth's RATE_BOOST_MULTIPLIER when rate boost is on, and clamped to at least 2 so rate 0 behaves like rate 1. Only eSpeak defines this multiplier, so other synths are unchanged.
Author
Parents
Loading