Unsolved Qt Speech plug-in
-
Did anybody try to get Qt Speech up and running?
I tried the example on both Windows and Linux. It builds and runs but says "No text-to-speech plug-ins were found".
The plugin directory of my Qt 5.8 installation does not contain anything related to Qt Speech.
I thought if I install Qt Speech a plug-in will be installed?
Documentation does not say anything about Qt Speech plug-ins. -
Hey,
Not exactly an answer to your question, but I think it relies on the OS to provide a backend for the functionality. Perhaps you could check if you have the accessibility modules/dlls installed? -
What does https://doc-snapshots.qt.io/qt5-5.8/qtexttospeech.html#availableEngines do? Does it give available backends or all available plugins for the OS platform? The documentation says "Gets the list of supported text-to-speech engine plug-ins" but it's not completely clear.
-
@Eeli-K It returns an empty list on my Linux machine.
-
"On Linux by default speech-dispatcher is used." Speech-dispather seems to be a general daemon, not a speech synthesizer. It needs a real synthesizer backend, so you have to install one and make sure speech-dispatcher is running and using that synthesizer. Try for example espeak. Maybe it works directly without speech-dispatcher?
-
@Eeli-K
Or rather https://en.wikipedia.org/wiki/ESpeakNG. -
@Eeli-K I don't think this will solve "No text-to-speech plug-ins were found" problem as Qt Speech needs a plug-in, but my installation do not have any. So, I have no idea how it is supposed to work. Do I have to implement a plug-in by myself?
-
@jsulm So you installed Qt Speech plugin with the maintenance tool?
-
https://en.wikipedia.org/wiki/Festival_Speech_Synthesis_System seems to be another candidate, if you get the system working at all.
-
@Eeli-K I installed Qt Speech using Qt Maintenance Tool, but there are no plug-in for Qt Speech.
-
@jsulm Next step would be to try to load with the engine name, speechd in Linux and sapi in Windows (found from the source code).
-
The code for plugins is in the repository (see http://code.qt.io/cgit/qt/qtspeech.git/tree/src/plugins/tts?id=483208aff4f583df2c9c14d0d549c39d68481196) and in the source code downloaded by the Maintenance Tool. They seem to properly include and use the platform dependent code. If the binaries don't exist it must be a build issue, a bug in the official downloaded binaries.
-
@Eeli-K Yes, it does not make sense to provide a TP without mandatory plug-ins.
-
I also installed it with the maintenance tool. The example works perfectly on OS X and it makes a lot of fun. Great job!
-
I created https://bugreports.qt.io/browse/QTBUG-58461 - feel free to follow that bug. It is indeed missing the plugin from the packages.
-
Which Windows version did you test? From what I can tell, the plugin is not in the MINGW packages, the MVSC packages should have it, is that correct?
-
@frederik Thanks for the info!
I tested the MinGW version. I will test MSVC version later. -
Under linux install:
speechd-el
speechd-el-doc-cs
speechd-up -
@jsulm I've used Qt Speech on Android (7.0 / API 24) , and it works fine, with Qt 5.12.x.
It works also with Windows 7, but voice is not so nice as Android voices -
To solve "No text-to-speech plug-ins were found" on Ubuntu, I needed to install
sudo apt-get install qtspeech5-speechd-plugin
(This installs: /usr/lib/x86_64-linux-gnu/qt5/plugins/texttospeech/libqtexttospeech_speechd.so)
And the speech engine can be installed with:
sudo apt-get install speech-dispatcher