Hi there,
first of all i want to say: This project is great! Keep it up!
I also want to say: I did not speak or write english for over 15 years. So please excuse me!
Unfortunately I have a problem with Rhasspy in a docker container. The sounds “beep_hi.wav” etc. cannot always be heard. This makes it difficult to identify whether the wake word has worked or not.
About my system:
Raspberry Pi 3 with Buster
Respeaker 4-mic linear for raspberry pi with connected speaker
Rhasspy in a docker container
I’ve tried a lot. The sound is always played on the host (not in the container) with „aplay beep_hi.wav”.
With “docker exec ID aplay /usr/share/rhasspy/etc/wav/beep_hi.wav” the sound plays only sometimes, sometimes the speaker stays silent. I assume that something goes wrong in the container.
I started the container with
sudo docker run -p 12101: 12101 \
--restart always \
--name rhasspy \
-v "/ home / pi / rhasspy / profiles: / profiles" \
--group-add $ (getent group audio | cut -d: -f3) \
--device / dev / snd: / dev / snd \
synesthesiam / rhasspy-server: latest \
--user-profiles / profiles \
--profile de
I also tried „—privileged” and -v “/home/pi/rhasspy/asound.conf:/etc/asound.conf” with the following asound.conf:
pcm.! default {
type asym
capture.pcm "mic"
playback.pcm "speaker"
}
pcm.mic {
type plug
slave {
pcm "hw: 1.0"
}
}
pcm.speaker {
type plug
slave {
pcm "hw: 0.0"
}
}
The problem ist he same with all of my ideas. I have read in forums that pulseaudio and ALSA may interfere. However, I don’t know how to fix the problem.
I hope you still have some ideas to solve this problem.
Thanks in advance!
Best wishes