feat(voice_worker): a plain decode just short of the gate is rescued by a confident close prompted one

Harsh copies of the user's speech (weak voice, noise at SNR 10/5 dB, headset band, Opus 12 kbps,
reverb) with the worker's own VAD for noise: lowering the gate itself let laughter through (VAD-cut
noise 0/5 -> 1/5 at -0.8), and three noise suppressors (DeepFilterNet3, RNNoise, noisereduce) made
every condition worse, so neither is used. Rescuing a plain decode at -0.8..-0.7 with the prompted
text when that passed the gate and stays close: headset 13.8% -> 7.5%, no more noise with text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-19 21:02:05 +09:00
parent 835b547ca2
commit b30aa4a0db
4 changed files with 67 additions and 14 deletions

View File

@@ -171,6 +171,12 @@ decoded with the recent conversation as its previous-text prompt:
was kept, it stays within half that text's letters of it, and it holds every hotword exactly as
often; otherwise the text without context is used. On noise or unsure audio the prompt makes
Whisper write words of the conversation; this rule keeps that out, as for the hint.
- One rescue: when the decode without context was dropped by the gate but its mean log-probability
is at least -0.8 (just short of -0.7), the prompted text (which passed the gate itself) is used if
it is that close to it and keeps every hotword count. The unsure text itself is never used.
Measured on harsh copies of the user's speech: a cheap headset 13.8% to 7.5% error, empty results
fewer by 1-2 per 100 in most conditions, and no more noise with text (VAD-cut noise 0 of 5, noise
decoded straight 16 of 108, as before); -0.9 let 3 more noise clips through.
- Finals stay batched. The decoder needs the start token at the same position in every prompt of a
batch, so each clip's context is cut from its end to the shortest one in the batch (a channel's
clips share most of it); a clip without a context borrows another's and keeps its plain result.