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.
-
I can not include it, when I do
@
#include <QtSpeech>
@The QtCreator say "QtSpeech, not such a file or directory", but I checked the instalation, and its correct.
-
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 using ubuntu, but I follow the instructions, and the script "get_festival.sh" doesn't work, I did the script manualy, step to step. I need add it to library, but how? In readme file is suposed that I don't need do this. How I do it?
-
i'm developing this library "QtGoogleSpeech
":https://github.com/niqt/QtGoogleSpeech that use google on-line service