feat: recover dropped dictation commands via blank-gap TDT repair#2
Open
timlenardo wants to merge 1 commit intomainfrom
Open
feat: recover dropped dictation commands via blank-gap TDT repair#2timlenardo wants to merge 1 commit intomainfrom
timlenardo wants to merge 1 commit intomainfrom
Conversation
TDT suppresses dictation commands (period, comma, end quote, etc.) via LM context when the preceding word makes blank more probable than the token. This surfaces as a blank gap ≥960ms in the token timestamps with VAD-confirmed speech inside the gap. The repair runs after the main TDT inference: 1. Find inter-token gaps ≥12 frames (960ms) in hypothesis.timestamps 2. Run Silero VAD on the full audio to confirm speech in each gap 3. Run a focused TDT re-inference on the gap window (afterFrame+3 to beforeFrame+2) 4. If recovered text is a known dictation command, insert it into the transcript Validated on 536 eval recordings (3 hits) and 2,757 real history audio files (3 hits, 7.9% trigger rate). Window inference measured at 72ms median — not a full 15s inference cost. Expected average latency overhead: ~6ms/transcription. Also adds two eval harnesses: - EvalHistoryRepairTests: runs repair against all eval recording audio files - HistoryAudioGapScanTests: scans history audio for gap trigger rate and recovery
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.
Summary
AsrManager.initialize()and reused; repair is a no-op if VAD is unavailableValidation
Validated on 536 eval recordings and 2,757 real history audio files:
Files
Test plan