Change wake sound in Rhasspy docker container

Hi,
I’ve just installed Rhasspy for the first time on mt Pi3 using the docker image, I’m trying to figure out where are located the wake sounds.
The web interface show this kind of path ${RHASSPY_BASE_DIR}/etc/wav/xxx.wav however I can’t find how is configured that constant path. Where is exactly?

Thanks!

Hey,

I assume your are using version 2.5-pre.

  1. Run a docker ps and remember name of rhasspy docker image
  2. Run docker exec -it nameYouRemeber /bin/bash
  3. then you’ve just opened a shell inside the rhasspy docker container
  4. run cd /etc/wav (assuming a pwd shows:/usr/lib/rhasspy-voltron )
  5. run ls -a and you’ll see the three default .wav files

That’s what you have been looking for?

To use other sounds, you can put them into the rhasspy-profile folder.
I created a sub-folder, called wav with several sounds. Then you can use:

${RHASSPY_PROFILE_DIR}

For example:
wav_2

and then:

${RHASSPY_PROFILE_DIR}/wav/question.wav

wav_1

@Bozor @kaykoch thanks both for the replies!
I used to play with docker a bit years ago but totally forgot about accessing to the container’s shell :sweat_smile:
Also changing the reference path and keep all into /profiles is a nice alternative!

1 Like

Don’t forget, that after creating a new container all changes inside are gone. And at this time new images are publlished very often.

So it’s mandatory to point all datas and customization outside the container, make sense

Dear all,
I m facing the same problem - audio files are not played as “Wake WAV” confirmation.
Only the inbuilt files work: ${RHASSPY_BASE_DIR}/etc/wav/beep_lo.wav
I created wav files in 16bit/16khz/mono, 16bit/44.1khz/mono, 16bit/44.1khz/stereo,
I uploaded them to this directory: ~/.config/rhasspy/profiles/de/wav
which has been set as profiles directory when running the docker command:

docker run -d -p 12101:12101 -p 12333:12333/udp
–name rhasspy
–restart unless-stopped
-v “$HOME/.config/rhasspy/profiles:/profiles”
-v “/etc/localtime:/etc/localtime:ro”
–device /dev/snd:/dev/snd
rhasspy/rhasspy
–user-profiles /profiles
–profile de

and they are shown there:

[19:12:34] openhabian@openhabianpi:~/.config/rhasspy/profiles/de/wav$ ls
in_ordnung.wav In_ordnung.wav In_Ordnung.wav Ja_bitte_mono_16.wav Ja_bitte_mono_44.wav ja_bitte.wav Ja_bitte.wav wie_bitte.wav Wie_bitte.wav

But when I configure Rhasspy like this:

nothing is played for whatever audio file formats.

Any ideas?

If you have the files in your profile folder then you need to replace the base dir with the profile dir variable (${RHASSPY_PROFILE_DIR})

2 Likes

Thank you, it works.