Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85019

Wrong math for QTextToSpeechEngineIos

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.4.0 Beta1
    • 5.14.2
    • Speech
    • None
    • iOS/tvOS/watchOS
    • 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;

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            ecspertiza Anton Mihaylov
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes