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. How to save a text to speech into a wav-file?

How to save a text to speech into a wav-file?

Scheduled Pinned Locked Moved Solved General and Desktop
qt speechspeechtts
4 Posts 3 Posters 1.5k Views
  • 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.
  • A Offline
    A Offline
    aaker
    wrote on 14 Oct 2017, 04:08 last edited by A Former User
    #1

    the qspeech example works fine. but i 'd like to save it to a wav.file. Does anybody know how to?
    thanks a lot.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on 14 Oct 2017, 18:00 last edited by
      #2

      That's not supported.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aaker
        wrote on 16 Oct 2017, 08:41 last edited by aaker
        #3

        according to SAPI5.4 (works for windows text to speech) , interface ISpVoice has a function named SetOutput() which may save the text to speech voice as a wav.file. the problem is that qspeech creates an ttsEngine object which declares a (ISpVoice* m_pVoice) as a private object. you can't access it from the uplevel object which means you can't access ISpVoice interface directly to be able to use any fuctions it supports.
        Does anybody know why is it?
        thanks a lot.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 16 Oct 2017, 21:26 last edited by
          #4

          Hi and welcome to devnet,

          Likely a feature that nobody thought about yet. The module is pretty young, you are welcome to make suggestions to improve it.

          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

          4/4

          16 Oct 2017, 21:26

          • Login

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