Repository navigation
feat(speech): split offline STT transcription at VAD gaps - #1607
Merged
Merged
Conversation
Whisper and Qwen3-ASR transcribe now cut long audio at the last VAD gap within the model's limit, fall back to the quietest 100 ms for unbroken speech, and skip silence. Closes #1590
Qwen3-ASR now and then stops a long piece before writing anything; when that happens to a piece of 5 s or more, transcribe its two halves, cut at the speech gap nearest the middle.
msluszniak
marked this pull request as ready for review
November 4, 2026 14:06
barhanc
reviewed
Nov 4, 2026
barhanc
approved these changes
Nov 4, 2026
barhanc
left a comment
Member
There was a problem hiding this comment.
Tested the 2 STT models and the work well.
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.
Description
transcribenow cut long audio at the last FSMN VAD gap within the model's limit, fall back to the quietest 100 ms for unbroken speech, and skip silence.speech/utils/audioSplitting.ts.Introduces a breaking change?
Type of change
Tested on
Testing instructions
yarn test(new splitter, Whisper and Qwen3-ASR cases).apps/speech: transcribe a multi-minute recording.Screenshots
Related issues
Closes #1590
Checklist
Additional notes
WER, host Python port of the pipelines with the shipped XNNPACK
.ptes (not on device). Long = 24 LibriSpeech test-clean chapters joined to 77-246 s; short = first 100 clips.Short-clip changes are 1-2 word spelling variants, no clipped speech.
Galaxy S26 Ultra (release), tiny.en and Qwen3-ASR on 3 of the long files: within 0-8 words of the host run; 10 s of silence returns "" in ~25 ms.