Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.14.2
-
None
-
-
d8fe747757 (qt/qtspeech/dev) d8fe747757 (qt/tqtc-qtspeech/dev) d8fe747757 (qt/qtspeech/6.4) d8fe747757 (qt/tqtc-qtspeech/6.4) d8fe747757 (qt/qtspeech/6.4.0) d8fe747757 (qt/tqtc-qtspeech/6.4.0) d8fe747757 (qt/qtspeech/6.4.1)
Description
Your have wrong math for calck rate for IOS in qtexttospeech_ios.mm QTextToSpeechEngineIos::say
if m_rate < 0, utterance.rate allways will be < 0, but, AVSpeechUtteranceMinimumSpeechRate almost always equal to 0, this wrong math.
I can`t offer pull request for fix, but correct math is:
float rate = ((m_rate + 1) / 0,02) / 100;
utterance.rate = AVSpeechUtteranceMinimumSpeechRate + rate;