Hey #Firefox friends.
-
Hey #Firefox friends. Is there any way to improve TTS on #Linux?
Currently it calls the default eSpeak-NG voices which are robotic and quite difficult to listen to.
Is there any way to hook the JS SpeechSynthesisUtterance to something modern like Piper?
I don't want to rely on a web service like Chrome does. I want to use the local voice models on my machine.
Anyone know if that's possible?
@Edent Do you know if Firefox is calling espeak directly or using speech-dispatcher?
-
@mike thanks!
It downloaded and installed. But now FF throws this error when trying to list local voices.
I'll have a play around, but if you know what button I need to press, do please let me know
-
@mike thanks!
It downloaded and installed. But now FF throws this error when trying to list local voices.
I'll have a play around, but if you know what button I need to press, do please let me know
@mike you'll never believe this - but I got it working by⦠turning it off then on again
Thanks - this is brilliant and just what I needed.
Do you know if there's a way to have multiple voices available to FF? -
@Edent Do you know if Firefox is calling espeak directly or using speech-dispatcher?
@fireborn speech-dispatcher.
-
@mike you'll never believe this - but I got it working by⦠turning it off then on again
Thanks - this is brilliant and just what I needed.
Do you know if there's a way to have multiple voices available to FF?@Edent Excellent!
Multiple voices aren't possible yet, I took a very conservative approach to how it handles the speech dispatcher configuration initially (out of fear of leaving people with non-functional TTS), but I'm planning to rework that and make it a lot more comprehensive (including support for multiple voices). Unfortunately I haven't had a lot of time to work on it recently, so that feature might still be a little way off. -
@fireborn speech-dispatcher.
@Edent If you open /etc/speech-dispatcher/speechd.conf and change defaultModule to one of the other ones added, you will be able to use other voices.
-
@Edent Excellent!
Multiple voices aren't possible yet, I took a very conservative approach to how it handles the speech dispatcher configuration initially (out of fear of leaving people with non-functional TTS), but I'm planning to rework that and make it a lot more comprehensive (including support for multiple voices). Unfortunately I haven't had a lot of time to work on it recently, so that feature might still be a little way off.@mike no worries - it is still brilliant. Happy to test it further.
One last question, do you know if it is possible to adjust the rate and pitch? Doesn't seem to work from inside FF, but I don't know if that's a limitation of the model.
-
@Edent If you open /etc/speech-dispatcher/speechd.conf and change defaultModule to one of the other ones added, you will be able to use other voices.
@fireborn thanks
Do you know where I can find compatible modules to download? -
@mike no worries - it is still brilliant. Happy to test it further.
One last question, do you know if it is possible to adjust the rate and pitch? Doesn't seem to work from inside FF, but I don't know if that's a limitation of the model.
@Edent The model doesn't natively support that, but if you install sox, the little shim that Pied installs will use that to adjust rate and pitch for you.
(Another big thing on my roadmap is to replace that shim with a little daemon that handles these sorts of things more elegantly) -
@fireborn thanks
Do you know where I can find compatible modules to download?@Edent RHVoice should be in your distribution's repos, there's also Voxin available for purchase. I'm not sure about piper because I never looked into it.
-
@Edent The model doesn't natively support that, but if you install sox, the little shim that Pied installs will use that to adjust rate and pitch for you.
(Another big thing on my roadmap is to replace that shim with a little daemon that handles these sorts of things more elegantly)@mike ah yes, pitch and speed working well. Many thanks
Let me know if I can help test etc.
-
@mike ah yes, pitch and speed working well. Many thanks
Let me know if I can help test etc.
@Edent Brilliant! I'll likely give you a quick poke when I have a version with multiple voices ready to test

-
R relay@relay.an.exchange shared this topic