Elleo / pied

Pied makes it simple to install and manage text-to-speech Piper voices for use with Speech Dispatcher.
https://pied.mikeasoft.com
GNU General Public License v3.0
125 stars 4 forks source link

FR - Ability to switch voices in terminal #11

Open Jopp-gh opened 7 months ago

Jopp-gh commented 7 months ago

I want to be able to switch voices in terminal. Eg. By default, my settings use english but sometimes I need the german voice aswell.

spd-say -o piper -l de-DE "Hallo alle zusammen"

My code should work, but it doesn't, as the speech dispatcher uses the configuration in ~/.config/speech-dispatcher/piper.conf

I could save both voice configurations (en & de settings) separately and rewrite the default piper.conf through a shell script, still i'd like to hear your opinion first. Maybe Pied offers other features I am not aware of.

Elleo commented 7 months ago

Hi @Jopp-gh,

I'm planning a bit of a rewrite of the way Pied handles the configuration, which will allow for switching voices without further modifying the configuration, but at the moment it's not possible I'm afraid.

Jopp-gh commented 2 months ago

"... which will allow for switching voices without further modifying the configuration..."

Sounds great- are your planning to implement a string check so Pied will pick the right language?

A string check wouldn't need much more than 30 most common words to identify the right language.

Also, to make this automatic switch possible we'd need to specify one favourite voice, each language.

Just wondering, is Pied able to read text input too and not "just" to download and configure voices?

What's the progress status of this project / feature request if I may ask?

Jopp-gh commented 2 months ago

Pied looks and works great, plus it's easy to use - just some configurations need tweaking for a more flexible integration with Piper and the speech dispatcher. For this purpose, please consider reading these two links: