Change the wake word
How voice works explains how the satellite hears the wake word. The wake word is set per satellite, with the AMBROGIO_WAKE_WORD and AMBROGIO_WAKE_WORD_THRESHOLD environment variables. Add them to the environment section of the satellite’s compose.yaml and recreate it with docker compose up -d.
Choose another word
Section titled “Choose another word”-
Pick a word or a short phrase that follows the wake word rules. Words that sound English work best with the bundled model.
-
Set it, for example:
AMBROGIO_WAKE_WORD: Hey Computer -
Recreate the satellite.
-
Say the new word a few times from where you usually speak, and check that each time the log shows
satellite_wake_detected.
If the satellite exits with "event":"invalid_configuration" and "variable":"AMBROGIO_WAKE_WORD", the word breaks the rules or the model cannot represent it: choose another.
Make it more or less sensitive
Section titled “Make it more or less sensitive”- Watch the log while the satellite runs for a while.
- Adjust the threshold in small steps:
- If the satellite wakes up when nobody called it, and the log shows
satellite_wake_detected, raise it a little, for example to0.3. - If it often misses you, lower it a little, for example to
0.2.
- If the satellite wakes up when nobody called it, and the log shows
- Set the new value, for example
AMBROGIO_WAKE_WORD_THRESHOLD: "0.3", and recreate the satellite.
satellite_wake_rejected lines do not call for a higher threshold: the satellite already ignored those detections. See Logs.
Replace the keyword spotting model
Section titled “Replace the keyword spotting model”You can use another sherpa-onnx keyword spotting model, for example one trained on another language.
-
Prepare a folder with the files listed in Satellite configuration.
-
Mount it read-only over the bundled model in the satellite’s
compose.yaml:volumes:- /path/to/kws-model:/app/models/kws:ro -
Set
AMBROGIO_WAKE_WORDto a word that the new model’s vocabulary can represent. -
Recreate the satellite.
If the folder does not have this layout, the satellite does not start: the log shows satellite_startup_failed with Wake word model could not be loaded.