#Error in Rhasspy when testing TTS `AudioServerException: Command '['aplay', '-q', '-t', 'wav']`
1 messages · Page 1 of 1 (latest)
Looks like this issue is caused from it not being able to utilize the sound interface.
Installed alsa-plugins then set /etc/asound.conf on the host
pcm.!default {
type pulse
# If defaults.namehint.showall is set to off in alsa.conf, then this is
# necessary to make this pcm show up in the list returned by
# snd_device_name_hint or aplay -L
hint.description "Default Audio Device"
}
ctl.!default {
type pulse
}
Then linking it to it inside the docker.
# Rhasspy Container for Docker
version: "3.9"
services:
rhasspy:
image: rhasspy/rhasspy:latest
labels:
- "com.centurylinklabs.watchtower.enable=true"
- "com.centurylinklabs.watchtower.monitor-only=false"
container_name: rhasspy
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/lib/libvirt/images/usb001/docker-storage/rhasspy/profiles:/profiles
- /etc/asound.conf:/etc/asound.conf:ro
mac_address: "de:ad:be:ef:00:01"
networks:
- dhcp
devices:
- /dev/snd:/dev/snd
ports:
- 12101:12101 # http
- 12183:12183 # mqtt
command: --profile en --user-profiles /profiles
restart: "no"
networks:
dhcp:
name: "dbrv100"
Then adding Device: plughw:CARD=PCH,DEV=0 in the aplay config webui for rhasspy seems to have fixed it.
aplay -L for a list of devices to find which one it was 1,0
tested with aplay -D plughw:1,0 /usr/share/sounds/alsa/Front_Right.wav
or speaker-test -D plughw:1,0
Updated the container not sure if this helped
Error: "Archive directory /var/cache/apt/amd64/archives/partial is missing."
mkdir -P /var/cache/apt/amd64/archives/partial
apt clean
apt update
apt upgrade
apt dist-upgrade
Probably have to do more to get pulse properly working inside of the docker but the hw method seems to be working so far.
Error in Rhasspy when testint TTS AudioServerException: Command '['aplay', '-q', '-t', 'wav']