Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yummmy-yummmy opened this issue Nov 27, 2023 · 6 comments
Closed

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

yummmy-yummmy opened this issue Nov 27, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@yummmy-yummmy
Copy link

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
Copy link
Owner

Elleo commented Nov 27, 2023

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

@Elleo Elleo self-assigned this Nov 27, 2023
@Elleo Elleo added the bug Something isn't working label Nov 27, 2023
@yummmy-yummmy
Copy link
Author

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
Copy link
Owner

Elleo commented Nov 27, 2023

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
Copy link
Owner

Elleo commented Nov 27, 2023

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
Copy link

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
Copy link
Owner

Elleo commented Jan 20, 2024

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!

@Elleo Elleo closed this as completed Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants