Text To Speech on Qt
-
Hello all.
I have a question, how can I do a text to speech on qt? I think I'll need extra libraries for this, right? If no, plese, give me a way to do this.
I'm doing a text editor/translator, and I want that when I click on a button "Speak", the text is spoken.
-
There is "QtSpeech":http://lynxline.com/projects/qtspeech/ .
I actually used it in windows but building drains all your effort.
-
Did you build it? If I remember it correctly, I downloaded Windows PDK and Speech SDK. Followed the instructions in "README"(?) file, like editing some part of the codes. You should be able to build it, Then you need to add the library to your project (It takes time and effort since there are no binaries ready to be downloaded and building it is "bloody").
Seriously, I prefer using commandline TTS like "eSpeak":http://espeak.sourceforge.net/ or "Say":http://krolik.net/post/Say-exe-a-simple-command-line-text-to-speech-program-for-Windows.aspx ,etc. Using QProcess is straightforward. Plus, cmdline TTS are not heavy.
-
i'm developing this library "QtGoogleSpeech
":https://github.com/niqt/QtGoogleSpeech that use google on-line service