pied icon indicating copy to clipboard operation
pied copied to clipboard

FR - Ability to switch voices in terminal

Open Jopp-gh opened this issue 1 year ago • 3 comments
trafficstars

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.

Jopp-gh avatar Apr 11 '24 13:04 Jopp-gh

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.

Elleo avatar Apr 27 '24 14:04 Elleo

"... 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 avatar Sep 07 '24 18:09 Jopp-gh

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:

  • https://github.com/rhasspy/piper/discussions/328#discussioncomment-10526529
  • https://github.com/evuraan/mintPiper

Jopp-gh avatar Sep 13 '24 18:09 Jopp-gh