Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Text To Speech plugin
Forum Updated to NodeBB v4.3 + New Features

Qt Text To Speech plugin

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
tts espeak
9 Posts 2 Posters 2.0k Views 3 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.
  • K Offline
    K Offline
    Kutyus
    wrote on 18 Feb 2019, 12:56 last edited by
    #1

    Hi!

    I would like to use the qt (5.12.1) tts under linux. I installed the espeak, libespeak-dev, libespeak1 and speech-dispatcher-espeak, complie the qt, but the flite working only. Spd-say is working correctly all the espeak voices good.

    What is I am wrong?
    Thanks in advance.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 18 Feb 2019, 21:15 last edited by
      #2

      Hi,

      You should start your application with the QT_DEBUG_PLUGINS environment variable set to 1. This will give you more clues about what is happening with the modules.

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

      K 1 Reply Last reply 21 Feb 2019, 09:06
      2
      • S SGaist
        18 Feb 2019, 21:15

        Hi,

        You should start your application with the QT_DEBUG_PLUGINS environment variable set to 1. This will give you more clues about what is happening with the modules.

        K Offline
        K Offline
        Kutyus
        wrote on 21 Feb 2019, 09:06 last edited by
        #3

        Hi!

        Thank you for answer, I founded a partially solution.
        The flite is used native, to using speech dispatcher required libspeechd2, libspeechd2-dev and speechd2. Recompile the qt environment the speechd plugin is available, but only speaking with male voice. The available voices name, gender and age is "hungarian - Unknown Gender - Other Age"
        The spd-say is working all espeak gender and age.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 21 Feb 2019, 22:44 last edited by
          #4

          Can you show how you are using the module ?

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

          K 1 Reply Last reply 22 Feb 2019, 07:18
          0
          • S SGaist
            21 Feb 2019, 22:44

            Can you show how you are using the module ?

            K Offline
            K Offline
            Kutyus
            wrote on 22 Feb 2019, 07:18 last edited by Kutyus
            #5

            @SGaist

            I modified in the speech-dispatcher configuration file this lines:
            DefaultVoiceType "FEMALE2"
            DefaultLanguage "hu"
            DefaultModule espeak

            QVector<QVoice> voices;
            tts = new QTextToSpeech("speechd", parent);
            voices = tts->availableVoices();
            foreach(const QVoice &voice, voices)
            {
            qDebug() << QString("%1 - %2 - %3").arg(voice.name()).arg(QVoice::genderName(voice.gender())).arg(QVoice::ageName(voice.age())); <-- this line result "hungarian - Unknown Gender - Other Age" two time
            		
            	}
            

            And call tts->say(const QString &text) method.
            If I set voice with setVoice method voices[0] or voices[1] is same result, the male gender speaking.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 23 Feb 2019, 22:11 last edited by
              #6

              What linux distribution are you using ?

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

              K 1 Reply Last reply 24 Feb 2019, 18:30
              0
              • S SGaist
                23 Feb 2019, 22:11

                What linux distribution are you using ?

                K Offline
                K Offline
                Kutyus
                wrote on 24 Feb 2019, 18:30 last edited by
                #7

                @SGaist
                I am developing on raspbian.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 24 Feb 2019, 22:24 last edited by
                  #8

                  Which version ?

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

                  K 1 Reply Last reply 25 Feb 2019, 07:19
                  0
                  • S SGaist
                    24 Feb 2019, 22:24

                    Which version ?

                    K Offline
                    K Offline
                    Kutyus
                    wrote on 25 Feb 2019, 07:19 last edited by
                    #9

                    @SGaist
                    uname -a: Linux xxx 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l
                    cat /etc/os-version:
                    PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
                    NAME="Raspbian GNU/Linux"
                    VERSION_ID="9"
                    VERSION="9 (stretch)"
                    ID=raspbian
                    ID_LIKE=debian
                    HOME_URL="http://www.raspbian.org/"
                    SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
                    BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

                    1 Reply Last reply
                    0

                    3/9

                    21 Feb 2019, 09:06

                    topic:navigator.unread, 6
                    • Login

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