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 get more voices for QTextToSpeech?
Forum Updated to NodeBB v4.3 + New Features

How to get more voices for QTextToSpeech?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtexttospeechubuntu 16.04linuxfliteqtspeech
3 Posts 2 Posters 3.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.
  • ? Offline
    ? Offline
    A Former User
    wrote on 2 Aug 2017, 18:22 last edited by A Former User 8 Feb 2017, 18:29
    #1

    Hi! I'm playing with the Hello Speak Example on Ubuntu 16.04. I installed Qt 5.9.1 and the flite backend / Qt flite plugin from Ubuntu's repositories. So far, so good, the example works but it only gives me "English (UnitedStates)" for the language and "kal16 - Male - Adult" for the voice. Does anybody know what packages I need to install to get more voices? A single English female voice would already be sufficient.

    BTW, when I enter flite -lv in the terminal, it says Voices available: kal awb_time kal16 awb rms slt. And flite -voice slt -t "Hello" actually speaks with the slt voice.

    P.S.: Actually the OS is KDE Neon, which is basically just some extra repos on top of Ubuntu. Not sure if that makes any difference, just saying.

    R 1 Reply Last reply 3 Aug 2017, 07:13
    0
    • ? A Former User
      2 Aug 2017, 18:22

      Hi! I'm playing with the Hello Speak Example on Ubuntu 16.04. I installed Qt 5.9.1 and the flite backend / Qt flite plugin from Ubuntu's repositories. So far, so good, the example works but it only gives me "English (UnitedStates)" for the language and "kal16 - Male - Adult" for the voice. Does anybody know what packages I need to install to get more voices? A single English female voice would already be sufficient.

      BTW, when I enter flite -lv in the terminal, it says Voices available: kal awb_time kal16 awb rms slt. And flite -voice slt -t "Hello" actually speaks with the slt voice.

      P.S.: Actually the OS is KDE Neon, which is basically just some extra repos on top of Ubuntu. Not sure if that makes any difference, just saying.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 3 Aug 2017, 07:13 last edited by
      #2

      @Wieland
      First of all i don't have any experience with QtSpeech module yet.

      But AFAIK the used backend on Linux is speech-dispatcher and not flite.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      ? 1 Reply Last reply 3 Aug 2017, 09:23
      1
      • R raven-worx
        3 Aug 2017, 07:13

        @Wieland
        First of all i don't have any experience with QtSpeech module yet.

        But AFAIK the used backend on Linux is speech-dispatcher and not flite.

        ? Offline
        ? Offline
        A Former User
        wrote on 3 Aug 2017, 09:23 last edited by A Former User 8 Mar 2017, 09:32
        #3

        @raven-worx I don't have any experience with TTS either, also I can't find much info about the current infrastructure on Linux, resp. on KDE. I have installed speech-dispatcher. And I can make it speak in the terminal, using its own spd-say command. I'm not sure how speech-dispatcher and flite are related. I think speech-dispacher is an abstraction layer / daemon, and flite is one of several "engines" it can use.

        spd-say --list-output-modules says:

        OUTPUT MODULES
        flite
        cicero
        generic
        dummy
        espeak

        The following packages that seem to be relevant have been installed:

        • speech-dispatcher
        • libspeechd2
        • flite
        • libflite1
        • speech-dispatcher-flite
        • libqt5texttospeech5
        • libqt5texttospeech5-dev
        • qtspeech5-flite-plugin

        Note that no qtspeech5-speechdispatcher-plugin (or similar) exists in the repo. But looking at the Qt Speech sources, it seems there should be such a plugin.

        Anyways, when I build an application for testing ....

        • QTextToSpeech::availableEngines() returns "flite"
        • availableLocales() gives "en_US"
        • and availableVoices() says "kal16".
        1 Reply Last reply
        0

        1/3

        2 Aug 2017, 18:22

        • Login

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