Improve truncated transcribe.cpp results#1627
Closed
vladkalinichencko wants to merge 1 commit into
Closed
Conversation
vladkalinichencko
force-pushed
the
fix/transcribe-partial-results
branch
from
July 7, 2026 19:08
6a297b1 to
aabe333
Compare
vladkalinichencko
marked this pull request as ready for review
July 7, 2026 19:11
Owner
|
500k lines changed... |
Author
|
I accidentally vendored transcribe.cpp when upstreaming API change, sorry. My fix was for ~30 lines, but i patched transcribe.cpp, because for some reason they just didn't include the corresponding parameter for Qwen/Canary generation length through the current C/Rust API, which makes audio generation for more than ~2.5 mins impossible for these models, while, unrestricted, they can handle it pretty well |
Owner
|
please feel free to resubmit, or submit respective PR's to each repo |
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
This PR improves long transcriptions for transcribe.cpp models that can produce useful text but stop before emitting an end-of-stream token.
The main change is that Handy now preserves partial transcripts from truncated transcribe.cpp runs instead of treating them as a total failure. The PR also exposes a generation-token limit through the local transcribe.cpp binding and raises the Qwen3-ASR cap used by Handy, so longer Qwen outputs are not forced to stop at the previous short default.
History re-transcribe failures now show the underlying error details in the toast as well.
Why
Some models can hit their decoder generation limit even when the audio itself is within the model's supported input length. In that case the app previously discarded the text that had already been produced. This made a recoverable result look like a failed transcription.
For Qwen3-ASR, the previous generation cap was also too small for longer dictation-style recordings. Raising that cap allows the larger Qwen model to finish recordings that were previously cut off early.
Validation
cargo check --manifest-path src-tauri/Cargo.tomlbun run build