New profile with Docker

I’m using Docker and everything goes fantastic, I do not want to apply a drastic change and ruin everything I’ve done, that’s why I’ll ask the following:

How do I add a new profile?

I use the following code to start Rhasspy:

docker run -d -p 12101:12101 \
      --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 en

The profile I have now is with the English language, but, I also want to have it in Spanish.

Stop and remove your current rhasspy container

docker stop rhasspy
docker rm rhasspy

and start a new one with the same command, only with --profile es

docker run -d -p 12101:12101 \
      --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 es

Find the supported languages here:

Correct me if I’m wrong please (I want to corroborate that I understood well).

First I must stop the Docker, then I must delete it and then I must execute the command to start a profile in Spanish, right?

docker run -d -p 12101:12101 \
      --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 es

My questions are:

  1. What happens with my profile in English? Is everything eliminated?
  2. I repeat the same process if I want to change the language to English?

No, the English profile stays unaffected, the files are in the en subdirectory of your profiles directory. So after having started an English and a Spanish profile, you have the following directory layout:

.config/rhasspy/profiles/
└── en
    ├── profile.json
    ├── ...
└── es
    ├── profile.json
    ├── ...

You can keep switching between them, they are both used independently.

Yes, just repeat what @romkabouter said, but for English.

Yes, for the rest @koan has said it all :slight_smile:

Thank you for both. :heart: