Repository navigation
fix(examples): qualify judged STT phrases at the agent's speech onset - #626
Merged
Merged
Conversation
phrase_sweep --lead-range-ms agent draws a seeded lead per synthesis in AGENT_ONSET_RANGE_MS (450-650 ms), where the live agent's STT stream puts the speech onset after drain_padded_to_capacity pads the pre-roll. The fixed 300 ms lead never covered that position. The result JSON records leadRangeMs and leadSeed.
…place two With the onset at 450-650 ms, "excuse me please" missed about 0.5-1% of syntheses, which failed the adaptive-VAD barge-in step of the release gate. The barge-in scenes now use "sorry I have a question" (3000/3000 clean). "victor seven eight nine" lost its keyword once in 3000, so the third judged concurrent leg is now "golf sixteen seventeen eighteen" (3000/3000). Every judged clean phrase is requalified at n=3000 in that range (seed 20261125). The qualification guard fails a judged clean record without the agent onset range and a seed.
… fix docs Extract onsetQualificationDefect and use it in the judged-phrase loop, so the refusal test exercises the same check (legacy, 300 ms and seedless records). README and ROUNDTRIP.md name the new barge phrase and the onset-range clean sweep; S3 caller phrases stay babble-qualified. The phrase_sweep doc points at stt_pre_roll.rs for drain_padded_to_capacity.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The 0.23.1 release gate failed at the adaptive-VAD barge-in step: the barge phrase "excuse me please" was not recognized. Replaying the captured audio offline reproduces the miss deterministically. The sender audio is clean.
The cause is the phrase qualification sweep. It always put the speech onset 300 ms into a fresh recognizer stream. The live agent pads its STT pre-roll to capacity (
drain_padded_to_capacity, 700-750 ms), so speech starts about 450-650 ms in. The kroko streaming model's first-word reading depends on where the onset falls on its ~1.28 s partial grid. At the agent's onset "excuse me please" misses about 0.5-1% of syntheses; at 300 ms it was clean.What changed
phrase_sweep --lead-range-ms agent: a seeded lead per synthesis acrossAGENT_ONSET_RANGE_MS(450-650 ms). The result recordsleadRangeMsandleadSeed.stt-phrase-qualification.test.ts) fails when a judged clean record lacks the agent onset range or a seed. It reads the range fromphrase_sweep.rs, so the two stay in lockstep. Babble records are unchanged.Verification
start:roundtrip-barge-inran 20 times with the default VAD and 20 times withSHERPA_VAD_PROVIDER=adaptive: 40/40 green.Verified locally and via CI; no extra manual steps.