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

Docker container is missing aplay for local playback #40

Open
ghost opened this issue Apr 19, 2023 · 0 comments
Open

Docker container is missing aplay for local playback #40

ghost opened this issue Apr 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Apr 19, 2023

Describe the bug
Docker container is missing aplay for local playback

To Reproduce
Steps to reproduce the behavior:
0. Run docker container as described in de README.md

  1. Go to 'Webpage'
  2. Click on 'Play audio on'
  3. Set to 'Server'
  4. Click on 'Speak'
  5. See error in logs 'ERROR:mimic3_http.app:[Errno 2] No such file or directory: 'aplay' and on screen.

Expected behavior
Sound!

Environment (please complete the following information):

Fix

Fix is add --device /dev/snd to the docker run command e.g.

docker run \
       -it --device /dev/snd \
       -p 59125:59125 \
       -v "/docker/mimic3:/home/mimic3/.local/share/mycroft/mimic3" \
       'mycroftai/mimic3'

And inside the docker container install and enable audio.
Run as root in shell the following commands:

mkdir -p /var/cache/apt/amd64/archives/partial
apt install -y --no-install-recommends libasound2 libasound2-plugins alsa-utils
usermod -a -G audio mimic3

Now I have sound. But all my changes will be gone with every docker update :(

@ghost ghost added the bug Something isn't working label Apr 19, 2023
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

0 participants