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?

How to get more voices for QTextToSpeech?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtexttospeechubuntu 16.04linuxfliteqtspeech
3 Posts 2 Posters 3.5k 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 last edited by A Former User
    #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.

    raven-worxR 1 Reply Last reply
    0
    • ? A Former User

      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.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on 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
      1
      • raven-worxR raven-worx

        @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 last edited by A Former User
        #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

        • Login

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