Qt Text To Speech plugin
-
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. -
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. -
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.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. -
Can you show how you are using the module ?
-
I modified in the speech-dispatcher configuration file this lines:
DefaultVoiceType "FEMALE2"
DefaultLanguage "hu"
DefaultModule espeakQVector<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. -
What linux distribution are you using ?
-
Which version ?
-
@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"