Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTextToSpeech utterance listener

QTextToSpeech utterance listener

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • BonganiB Offline
    BonganiB Offline
    Bongani
    wrote on last edited by
    #1

    I am trying building an application that will read out text to the user and highlight the particular word that is read out, However i am struggling to implement that as i can a find a particular signal that is being emitted after every word is being uttered.

    Is there a way on the QTextToSpeech librarfy i can monitor each and every word being uttered by the tts engine and Highlight it ?

    Thank you in advance.

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      Can you do the opposite?

      1. highlight the word
      2. call QTextToSpeech::say passing that word
      3. use QTextToSpeech::stateChanged signal to determine when the word was completely uttered
      4. move to the next word

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2
      • BonganiB Offline
        BonganiB Offline
        Bongani
        wrote on last edited by
        #3

        @VRonin it will read out the word as if it's the start of a new sentence which make the reading sound terrible. It also cashes as i do a for loop to read out the words.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Can you share your code ?
          What about the stack trace ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved