Speech dispatcher doesn't work after after installing.
yummmy-yummmy opened this issue · 6 comments
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
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
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
.
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.
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.
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
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!