Custom wake words from text.

How a typed phrase becomes pronunciations and calibrated thresholds, and what makes a good one.

A Phonlet wake word is not a model. It is a short entry that tells the engine which sound sequences to listen for and how strict to be. Making one takes about a second.

1. Pronunciations

Each word is looked up in a 394,409-word pronunciation lexicon. Words it does not know, such as product names, get a pronunciation from a grapheme-to-phoneme model. You can also spell a phrase out yourself in ARPAbet phonemes, for example snowboy = S N OW B OY.

2. Calibration

Phonlet Wake predicts how often the phrase would fire by accident and turns that into two thresholds:

  • threshold_loose: the loose end, about 10 false alarms per hour at sensitivity 1.
  • threshold_strict: the strict end, about 0.1 false alarms per hour at sensitivity 0.

The sensitivity slider moves between them. The result also reports the expected threshold error, so you know how much to trust the calibration for that phrase.

keywords.json
{  "name": "hey barista",  "pronunciations": [[16, 13, 7, 1, 28, 18, 29, 31, 3]],  "threshold_loose": -1.3955078125,  "threshold_strict": -1.0380859375,  "endpoint": true,  "metadata": {    "source": "lexicon",    "expected_error": { "threshold_loose": 40.1, "threshold_strict": 43.2, "default": 41.7 },    "fa_factor_at_default": 1.7,    "flag": false,    "warnings": []  }}

3. Several pronunciations

A wake word can list more than one pronunciation, for regional accents or alternative spellings. It fires when any of them matches, so their false alarms add up and the shared thresholds become stricter. Add only the pronunciations people actually say.

4. Quality checks

WarningMeans
Too shortFewer than 4 phonemes: it occurs inside ordinary words and speech.
Too longMore than 12 phonemes: beyond the calibration phrases.
Too commonSo frequent in speech that it would fire whenever it is said.
UncertainThe calibration error for this phrase is high; test it before you ship.

Make yours

Type your phrases in the lab or the generator: both run the threshold generator in your browser and download keywords.json, the file every SDK reads as it is. On Linux, the wake-threshold command does the same from a terminal.