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

mimic3 running in a container is not accessible to speech-dispatcher #60

Open
flaurafauna opened this issue Sep 16, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@flaurafauna
Copy link

flaurafauna commented Sep 16, 2024

Describe the bug
Using speech-dispatcher with mimic3 running in a container does not work as there is no functional /path/to/mimic3 to reference in mimic3-generic.conf. Speechd registers the existence of the mimic3 module, but attempting to use it yields no output. Mimic3 server is confirmed running at http://localhost:59125/ and functions as expected with the installed voices.

I am running mimic3 as a systemd service using a podman container with the same parameters as outlined here.

Steps to Reproduce

  1. Place the following in $HOME/.config/containers/systemd/mimic3.container
[Unit]
Description=Podman Mimic3.service
Wants=network-online.target
After=network-online.target

[Service]
Restart=on-failure
TimeoutStartSec=900

[Container]
Image=docker.io/mycroftai/mimic3:latest
AutoUpdate=registry
PublishPort=59125:59125
Volume=%h/.local/share/mycroft/mimic3:/home/mimic3/.local/share/mycroft/mimic3:Z

[Install]
WantedBy=default.target
  1. Run the container as a service using systemctl --user start mimic3
  2. Add the following to /etc/speech-dispatcher/speechd.conf:
DefaultVoiceType  "FEMALE1"
DefaultLanguage "en"
AddModule "mimic3-generic" "sd_generic"  "mimic3-generic.conf"
DefaultModule mimic3-generic
  1. copy the example /etc/speech-dispatcher/modules/mimic3-generic.conf from github.
  2. Observe that the mimic3 server is running at localhost:59125 and that voice output works as expected
  3. Observe that spd-say -O and spd-say -o mimic3-generic -L output mimic3-generic and a list of configured voices, respectively.
  4. Attempt to say something using spd-say using any of the installed voices; observe that nothing happens.

Expected behavior
speech-dispatcher is able to use mimic3 voices to output text to speech audio.

Log files
/var/log/mycroft does not exist.

Environment (please complete the following information):

  • Device type: Laptop
  • OS: Fedora Silverblue
  • Mycroft-core version: N/A
  • Other versions: N/A

Additional context
Using the exact configuration above but installing mimic3 using pip rather than running as a container works as expected, but I would prefer to be able to run it as a container. Maybe I am just missing something obvious, but I have been troubleshooting this for a few days to no avail.

@flaurafauna flaurafauna added the bug Something isn't working label Sep 16, 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

1 participant