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.
principe_mestizo:
--profile en
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:
What happens with my profile in English? Is everything eliminated?
I repeat the same process if I want to change the language to English?
koan
April 15, 2021, 6:55pm
#4
principe_mestizo:
What happens with my profile in English? Is everything eliminated?
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.
principe_mestizo:
I repeat the same process if I want to change the language to English?
Yes, just repeat what @romkabouter said, but for English.
Yes, for the rest @koan has said it all