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
124 stars 4 forks source link

Speech dispatcher doesn't work after after installing. #1

Closed yummmy-yummmy closed 10 months ago

yummmy-yummmy commented 1 year ago

After installing and changing the config, speech dispatcher no longer works for me. When i run spd-say "This is a test", it doesn't give me an audio output.

Can I revert the changes somehow?

System Information OS: Fedora 39 Package format: Flatpak

Elleo commented 1 year ago

Hi @yummmy-yummmy,

Sorry that you're having problems with Pied.

If you had an existing user configuration for speech dispatcher it will have been saved as ~/.config/speech-dispatcher.orig.<date> (where is the date Pied was first used to change your configuration, e.g. ~/.config/speech-dispatcher.orig.2023-11-27). So you'd be able to restore your existing configuration by deleting the configuration made by Pied and copying the original configuration directory back, e.g.:

rm -r ~/.config/speech-dispatcher
cp -r ~/.config/speech-dispatcher.orig.2023-11-27 ~/.config/speech-dispatcher

Alternatively, if you didn't previously have a user configuration, then simply deleting the configuration generated by Pied will return you to the default/system configuration:

rm -r ~/.config/speech-dispatcher

To help me figure out why it's not working for you, are you able to let me know what version of speech dispatcher you have installed (running speech-dispatcher --version should display this) and what audio system you're using? (e.g. PulseAudio, PipeWire, ALSA, etc.)

Thanks! Mike

yummmy-yummmy commented 1 year ago

Thanks, deleting the config file worked. I don't tinker with these stuff usually so this was my first time using it.

As for speech-dispatcher, its version 0.11.5 and the audio system is PipeWire.

Elleo commented 1 year ago

Great, glad that's got things working for you again.

Thanks for the extra info, I'll try setting up a Fedora VM and see if I can reproduce the issue there.

Elleo commented 1 year ago

I think I've figured out what's wrong, Fedora 39 is using aplay as the default play command instead of paplay, and the format parameters are incompatible. I just need to figure out a good way to dynamically select the right parameters and then this should be sorted.

Unfortunately, I'm going to be away at a conference all week, but I'll have a dig into this once I get back.

another-sapiens commented 10 months ago

The following workaround is working for me on Fedora 39: Go to ~/.config/speech-dispatcher/modules and change the part that says...

$PLAY_COMMAND --raw --channels 1 --rate 16000

to

aplay -r 16000 -c 1 -f S16_LE -t raw

Elleo commented 10 months ago

I've just released version 0.2 which includes a fallback to aplay if paplay isn't available on the host system, thanks for finding this issue!