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
QtWS25 Last Chance

Qt Text To Speech plugin

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
tts espeak
9 Posts 2 Posters 2.0k 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.
  • KutyusK Offline
    KutyusK Offline
    Kutyus
    wrote on 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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

      KutyusK 1 Reply Last reply
      2
      • SGaistS SGaist

        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.

        KutyusK Offline
        KutyusK Offline
        Kutyus
        wrote on 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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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

          KutyusK 1 Reply Last reply
          0
          • SGaistS SGaist

            Can you show how you are using the module ?

            KutyusK Offline
            KutyusK Offline
            Kutyus
            wrote on 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
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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

              KutyusK 1 Reply Last reply
              0
              • SGaistS SGaist

                What linux distribution are you using ?

                KutyusK Offline
                KutyusK Offline
                Kutyus
                wrote on last edited by
                #7

                @SGaist
                I am developing on raspbian.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 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

                  KutyusK 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Which version ?

                    KutyusK Offline
                    KutyusK Offline
                    Kutyus
                    wrote on 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

                    • Login

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