Repository navigation
Fix Parakeet offline chunking for stereo and non-16-kHz audio - #1117
Merged
Merged
Conversation
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.
Fixes #1113.
Parakeet's offline fixed/long-form scheduler rejected stereo or non-16-kHz input before reaching the frontend preprocessing already supported by full-context mode. Normalize that input once with the existing framework downmix/linear-resampling helper before windowing. Mono 16 kHz input skips the conversion; streaming requirements and full-context defaults remain unchanged.
Update the model documentation and spec description to explain that
audio_chunk_mode=fixedselects the bounded scheduler regardless ofoffline_mode. Fixed-window duration comes from the session optionparakeet_tdt.audio_chunk_duration_sec; the request duration option applies to VAD chunks.Validation with the existing Parakeet-TDT 0.6B v3 Q8 GGUF:
offline_mode=full_context.A focused CUDA performance check on RTX 5090 (Debug, CUDA 13.3, four threads) found no measurable native-input regression: five warmed 410-second requests averaged 501.5 ms on main versus 499.0 ms after the fix, within run variation. In a separate alternating-input session, stereo handling averaged 643.7 ms versus 495.0 ms for the equivalent preconverted mono input, adding about 149 ms for conversion and handling the larger input. These are request timings excluding WAV loading and initial model setup.