Solved how qtspeech updates voice or language list ?
-
how to update the voice or language list of qtspeech?
for example, if i need female voice ,but the list only has male voice , how to deal with it ?
-
-
@jsulm hi, jsulm, I need to update the availableVoices() list ,
as the image above,if I need female voice, but the voice name list only has male voice.
how can I deal with it? -
@stevewu Sorry, I'm not an expert in this area. I think it depends on the used speech back-end.
https://doc.qt.io/qt-5/qtexttospeech.html
"On Linux, speech-dispatcher is used by default". -
@jsulm thanks for your reply,
I check the code in path ../qtspeech-everywhere-src-5.12.5/src/plugins/tts/speechdispatcher/qtexttospeech_speechd.cpp, line 88
speechDispatcher = spd_open("QTextToSpeech", "main", nullptr, SPD_MODE_THREADED);the function 'spd_open' is defined by libspeechd-dev ,
so I need to deal with libspeechd-dev lib, to fix it? -
@stevewu said in how qtspeech updates voice or language list ?:
so I need to deal with libspeechd-dev lib, to fix it?
Yes, you need to find out how the speech back-end handles the voices.
-
@jsulm OK , I got it,,