Skip to content

Fix Parakeet offline chunking for stereo and non-16-kHz audio - #1117

Merged
0xShug0 merged 1 commit into
mainfrom
fix/parakeet-offline-audio-1113
Oct 27, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
fix/parakeet-offline-audio-1113

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 27, 2026

Copy link
Copy Markdown
Owner

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=fixed selects the bounded scheduler regardless of offline_mode. Fixed-window duration comes from the session option parakeet_tdt.audio_chunk_duration_sec; the request duration option applies to VAD chunks.

Validation with the existing Parakeet-TDT 0.6B v3 Q8 GGUF:

  • Extended the existing CPU golden-transcription test: stereo 16/48 kHz inputs preserve the mono long-form transcript and word timestamps; fixed chunking also works with offline_mode=full_context.
  • Reproduced the reported 20-second stereo 48 kHz failure on main and verified the fix on CUDA.
  • Processed a 410-second stereo 44.1 kHz repeated-speech fixture in 41 bounded windows. Its transcript and timestamp output match main given the equivalent normalized mono input.
  • Native mono 16 kHz CUDA transcripts and timestamps match main exactly for both full-context and long-form decoding.

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.

@0xShug0
0xShug0 merged commit 0c98a09 into main Oct 27, 2026
7 checks passed
@0xShug0
0xShug0 deleted the fix/parakeet-offline-audio-1113 branch October 27, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parakeet TDT: fixed chunking rejects non-mono-16-kHz input even in full-context mode

1 participant