fix: enable longform chunking for GigaAM via VadChunked#1362
Closed
android6 wants to merge 1 commit intocjpais:mainfrom
Closed
fix: enable longform chunking for GigaAM via VadChunked#1362android6 wants to merge 1 commit intocjpais:mainfrom
android6 wants to merge 1 commit intocjpais:mainfrom
Conversation
Owner
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
Wires up the existing
VadChunkedutility fromtranscribe-rsfor GigaAM-v3 to fix gibberish output and silent failures on recordings >60 seconds. No changes totranscribe-rs— uses its public API. UI unchanged. Tested on a 4:25 Russian recording (previously a deterministic silent fail) — now produces a coherent transcript.How it works
Before:
After (this PR):
GigaAM-v3 was trained on segments ≤25-30 s. The new logic lives entirely between Handy and the model — using the existing
VadChunkedfromtranscribe-rs.VadChunkedhas been available intranscribe-rssince 0.3.4; the current default0.3.8already includes it. Whisper has its own chunking in C++, so only GigaAM is affected.Changes
src-tauri/Cargo.toml: enable thevad-silerofeature ontranscribe-rs(the Silero VAD model is already shipped with Handy).src-tauri/src/managers/transcription.rs:LoadedEngine::GigaAMnow holds(GigaAMModel, VadChunked).SileroVad → SmoothedVad → VadChunkedwith parameters tuned for the longform CTC use-case.chunker.transcribe(model, &audio)instead ofmodel.transcribe(...)directly.