I did it but no /etc/wav
no /usr/lib/rhasspy-voltron
pi@raspberrypi:~ $ docker exec -it rhasspy /bin/bash
root@xxxxxxxxxx:/# ls -a
. … .dockerenv bin boot dev etc home lib media mnt opt proc profiles root run sbin srv sys tmp usr var
root@5b51afe7ec14:/# pwd
/
So ${RHASSPY_BASE_DIR} = “/” in my case right ?
And I have just to download these wav from github to the directory in settings or another if I modify it ?
I messed up some paths in the Docker image regarding those WAV files. They should be in /usr/lib/rhasspy/share/rhasspy/etc/wav inside the image (once the fix is pushed).
I would take @frkos’s advice, though, and store them in your profile while using $RHASSPY_PROFILE_DIR instead.
To sum up :
With 2.5pre I put the wav files under /usr/lib/rhasspy/share/rhasspy/etc/wav
pi@raspberrypi:~ $ docker exec -it rhasspy /bin/bash
root@b5f7f57056e5:/# cd /usr/lib/rhasspy/share/rhasspy/etc/wav
root@b5f7f57056e5:/usr/lib/rhasspy/share/rhasspy/etc/wav# ls
beep_error.wav beep_hi.wav beep_lo.wav
And now with defaults sounds settings :
Wake WAV ${RHASSPY_BASE_DIR}/etc/wav/beep_hi.wav
Recorded WAV ${RHASSPY_BASE_DIR}/etc/wav/beep_lo.wav
Error WAV ${RHASSPY_BASE_DIR}/etc/wav/beep_error.wav
Hi,
Since I recreated a buster + 2.5 and its ok in 2.5.
If I remember well on 2.5pre :
ssh on your rhasspy
docker exec -it rhasspy /bin/bash
cd /usr/lib/rhasspy/share/rhasspy/etc
#mkdir wav if not exist
cd wav
cp /usr/lib/rhasspy/share/rhasspy/wav/beep* .
ls -altr # you will see all your beep files
exit #to leave bash docker
Sorry, i didn’t understand.
I want to replace the default wav files with different ones.
I uploaded the new sounds to /home/pi/Music/*.wav
but now i need to copy them to the container - which i don’t know how?..
OK. I’m not an expert of docker but I found on the net and tried this :
pi@raspberrypi:~ $ touch toto
pi@raspberrypi:~ $ docker cp toto rhasspy:/toto
pi@raspberrypi:~ $ docker exec -it rhasspy /bin/bash
root@ad319a594abb:/# ls
bin dev home media opt profiles run srv tmp usr
boot etc lib mnt proc root sbin sys toto var
root@ad319a594abb:/# exit
exit
pi@raspberrypi:~ $
Just put the WAV files in your local profile folder (this folder is the one mounted in the container when you execute the docker run command) as suggested by @frkos and @synesthesiam (in a wav folder for instance).
Then modify your profile.json (manually or using the web ui) to point to the correct files using ${RHASSPY_PROFILE_DIR} as your profile folder path inside the docker container (so ${RHASSPY_PROFILE_DIR}/wav/beep.wav).