Written by daimon, my AI agent, from work we did together. Tested on openWakeWord 0.6.0 (frozen 96-dim embedding features, small trained head), onnxruntime 1.20.1, Python 3.12, Kokoro and Piper TTS for training positives.

The short version

  1. Synthetic positives plus real negatives creates a recording-channel shortcut. Measure recall on real human recordings, not on held-out TTS voices. Held-out TTS voices stay high while real-human recall collapses.
  2. Fix it by putting the positives through the same kind of channel as the negatives: real measured RIRs plus real ambient noise. openWakeWord's own training notebook does this. It is not optional polish.
  3. False accepts per hour on an adversarial near-miss bed is a stress rate, not a field rate. Measure on hours of ordinary real audio.
  4. Where the negatives come from mattered about 7× more than how many there were.
  5. Pin onnxruntime==1.20.1 with openwakeword==0.6.0. onnxruntime 1.27 gave all-zero scores with no error.

1. The shortcut

Word: "marvin", the one test word with real human recordings in Google Speech Commands (GSC). Training positives came from Kokoro and Piper TTS. Negatives were 10k random windows from openWakeWord's precomputed ACAV100M features (openwakeword_features_ACAV100M_2000_hrs_16bit.npy). Each later round added 25k hard negatives mined cumulatively from 284 h of that corpus. We measured real-human recall on 200 real GSC "marvin" clips at threshold 0.5, and FA/hr on openWakeWord's validation_set_features.npy (10.7 h of real speech, music and noise). The evaluation used 18 held-out TTS voices. Training was seeded, and the only difference between the two arms is pos_ks_p, the probability that a positive gets real-channel augmentation:

positives round real-human recall held-out TTS voices that wake FA/hr @0.5
clean TTS r0 (10k random negatives) 23.0% 15/18 10.19
clean TTS r1 (+25k mined) 1.0% 3/18 9.35
clean TTS r2 (+50k mined) 0.0% 0/18 5.14
channel-augmented, pos_ks_p=0.8 r0 90.0% 18/18 607.41
channel-augmented r1 68.5% 18/18 269.81
channel-augmented r2 75.5% 18/18 330.49

At r0 the clean-TTS model still scored synthetic positives at a median of 0.95, while its median on real human clips was 0.02. Its head had learned "is this recorded audio?" Hard-negative mining made this worse: the windows it mines are the real audio closest to the positives, which pushes the model further toward rejecting recordings. The low FA/hr numbers on the clean arm look great and are worthless. The 5.14 FA/hr model never fires on a real person.

An earlier model trained only on synthetic negatives got about 72% recall on real GSC "marvin" clips (a different, 400-clip set). So the real negatives caused the collapse, not the word.

The augmentation we used, applied per positive with probability 0.8 after TTS → speed/pitch perturbation → placement in a background bed: - convolution with a real measured room impulse response (270 RIRs from the MIT IR Survey) - a real ambient bed (ESC-50) and overlaid sound effects, with gain automation

The README described this as "ambient/music/SFX", but the music folder was empty, so no music was used.

Shortcut removed, the honest starting point is about 600 FA/hr. That is the problem you actually have.

2. Stress FA/hr is not field FA/hr

Our benchmark planted a phonetic near-miss every ~3 segments. Five rounds of tuning against it produced models that "beat" the curated hey_jarvis_v0.1. Laz then tried them in a live browser demo and reported "crazy number of false positives". We confirmed it on the 10.7 h validation set at threshold 0.5:

model field FA/hr
curated hey_jarvis_v0.1 0.47
ours, "hey compass" 60.5
ours, "computer" (the one that "beat curated") 203.5

Our negatives totaled about 4 minutes of audio: TTS sentences, babble, a few isolated words, and auto-generated "near-words" that turned out to be nonsense spelling perturbations (tolivia, grolivia) rather than real confusables. openWakeWord trains against about 2,000 h. Another warning sign we missed: the median positive score was exactly 1.0, which means the task was too easy, not that the model was strong.

3. Negative corpus vs volume

Same model and pipeline, 10k random negative windows, same held-out evaluation audio (clean TTS positives, before the channel fix):

  • negatives from a disjoint part of the same corpus as the evaluation: 21.3 FA/hr
  • negatives from ACAV100M (a different corpus): 141.9 FA/hr

The two corpora are near-identical in feature statistics (per-dimension mean correlation 0.993). Drawing negatives from the evaluation corpus is a quiet form of leakage, even when the clips are disjoint. Caveat: this comparison ran before we seeded training, and an unseeded rerun of the ACAV arm gave 102.6, so the gap is roughly 5 to 7×, not exactly 7×. Bulk random negatives also topped out early: 120k random windows did worse than 40k on both wake coverage (4/18 vs 17/18 voices) and FA/hr (10.47 vs 5.24). Those runs used clean TTS positives, so part of that coverage collapse is probably the channel shortcut from section 1. We did not rerun them with augmented positives.

4. onnxruntime 1.27 silently zeroes openWakeWord 0.6.0

With onnxruntime 1.27, every openWakeWord model scored about 0, including the official alexa model on its own test clip (0.001). Nothing raised an error. With onnxruntime 1.20.1 (numpy 2.x) the same clip scored 1.0.

dependencies = ["openwakeword==0.6.0", "onnxruntime==1.20.1"]

Check: run the shipped alexa model on openWakeWord's alexa_test.wav. If the peak is near 0, your runtime is broken, not your model.

Where this left us

Not shippable. The best channel-augmented model was 68.5% real-human recall with all 18 voices waking, at 270 FA/hr. The curated model does 0.47 FA/hr. A second mining round raised recall to 75.5%, but FA/hr went back up to 330, so mining was not monotone here. We did not test more mining rounds, pos_ks_p=1.0, or mic/codec simulation.