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

QTextToSpeech::enqueue doesn't work with winrt engine

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.8.0
    • Speech
    • None
    • Windows

      QTextToSpeech::enqueue doesn't appear to work properly with winrt speech engine. If you call enqueue twice in a row, sometimes (but not always) the first text isn't spoken, just the second. Same code works fine with sapi engine.

      Also, QTextToSpeech::aboutToSynthesize doesn't appear to work as documented for both winrt and sapi. In the docs, it says:

          void QTextToSpeech::aboutToSynthesize(qsizetype id)

      The id is the value returned by a call to enqueue(), 

      However, here's a list of ids returned by enqueue and then what is passed to a slot connected to aboutToSynthesize:

      enqueue 0
      aboutToSynthesize 0
      enqueue 1
      enqueue 2
      aboutToSynthesize 0
      enqueue 3
      aboutToSynthesize 1
      enqueue 4
      aboutToSynthesize 2
      aboutToSynthesize 0
      enqueue 5
      aboutToSynthesize 0
      enqueue 6
      aboutToSynthesize 0
      enqueue 7
      enqueue 8
      enqueue 9
      enqueue 10
      aboutToSynthesize 3
      aboutToSynthesize 4
      aboutToSynthesize 5

      If there's nothing queue, then the id passed to aboutToSynthesize appears to always be 0, not the id returned from enqueue which appears to increment sequentially.

       

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

            vhilshei Volker Hilsheimer
            srcejon Jon Beniston
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes