Closed mcepl closed 2 years ago
Hey there, just read this PR, looks good... But need to test it on my machine first... Thanks
Thinking about this, I wonder whether we shouldn’t use speechd instead: it is back-end independent and Firefox uses it on Linux, so it should be sufficiently widespread. spd-say
is the command, and spd-say -e
can read text from stdin as well.
Hey there, @mcepl , sure but hold up a bit... I kinda have some thoughts about tts engine, I will merge this first (after testing), and put my thoughts and will ping you later to discuss the engine...
@mcepl Hello there, I just add SpeakerBaseModel
if developers are interested in adding their fav tts engine, you can check the example of how to use it in https://github.com/wustho/epy/blob/master/epy.py#L107
Cheers!
That looks really great! I guess the configuration is PreferredTTSEngine
with value from cmd
class attribute?
Oh! Does it do auto-discovery? Great!
I guess the configuration is PreferredTTSEngine with value from cmd class attribute?
Yes, it is!
Oh! Does it do auto-discovery? Great!
It should, but need to define available
attribute (other than registering speaker config object to SPEAKERS
global var), because some tts engine like pico2wave
needs dependency like play
.
Unfortunately, the language setting is gone again.
Fixes #42