Whisper Transcription Cutoff: Only first paragraph/30 seconds of imported WAV is transcribed
Description: When importing an external .wav file for transcription, Voicebox 0.5.0 successfully processes the beginning of the audio but stops prematurely. Regardless of the total file length (tested with files ranging from 1 to 10 minutes), the output contains only the first paragraph or approximately the first 30 seconds of speech.
Steps to Reproduce:
Go to the Story/Timeline view.
Import an external .wav file (longer than 30 seconds).
Select "Transcribe" using any Whisper model (tested with Large, Medium, and Turbo).
Observe the output in the text area.
Expected Behavior: The entire audio file should be transcribed.
Actual Behavior: Transcription stops after the first ~30 seconds (roughly one paragraph), leaving the rest of the audio untranscribed.
Environment:
Voicebox Version: 0.5.0
OS: Windows 11
Hardware: NVIDIA RTX 5060 Ti 16GB (Compute Capability 9.0)
Models Tested: Whisper Large, Medium, Turbo
Additional Context: I suspect the backend may be missing a chunking or sliding-window mechanism for imported files. While the new "Capture" feature works for short bursts, imported audio appears to hit the default 30-second Whisper window limit and then stop, rather than proceed to the next segment.
Yeap, i have same problem, only first 30 sec are recognizable
Indeed, I see the same behavior on v0.5.0 while importing a 1 minute audio. The transcription is correct but only the output of the first 30 seconds of the audio file appear in the Captures tab entry.
Confirming this on macOS / Apple Silicon too (from a cabef1b source build), so it's not platform-specific — and pinpointing the root cause.
Root cause: the STT backends feed the entire audio into the processor and call model.generate() once, with no chunking. Whisper only attends to a single 30s window, so the processor pads/truncates to 30s and only the first ~30s is ever transcribed.
backend/backends/pytorch_backend.py (PyTorchSTTBackend.transcribe → _transcribe_sync):
inputs = self.processor(audio, sampling_rate=16000, return_tensors="pt") # pads/truncates to 30s
inputs = inputs.to(self.device)
...
predicted_ids = self.model.generate(inputs["input_features"], **generate_kwargs) # single 30s window
transcription = self.processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
There's no chunk_length_s, no return_timestamps, and no loop over segments — so anything past 30s is silently dropped. (The MLX STT path has the same shape.)
Concrete repro / measurement: a 43-minute mp3 via POST /transcribe returned in 26s with 280 characters — i.e. just the first ~30s. duration in the response was correct (2603s), confirming the full file loaded fine; only the transcription was truncated.
Fix direction: use Whisper's long-form transcription. The transformers ASR pipeline with chunking does it:
from transformers import pipeline
asr = pipeline("automatic-speech-recognition", model="openai/whisper-large-v3-turbo",
chunk_length_s=30, stride_length_s=5)
result = asr(audio_path, return_timestamps=True) # full file, with boundary overlap
As a local sanity check, running the same cached whisper-large-v3-turbo weights through that chunked pipeline transcribed the full 43 minutes (~37k characters) instead of 280 — so the model and weights are fine; only the backend's single-window call needs replacing with a chunked/long-form call. (The transformers docs note model.generate(..., return_timestamps=True)'s native long-form is the most accurate variant; chunk_length_s is the simpler drop-in.)
Also affected on the live dictation path (not just imported files): captures longer than ~30s record fine and play back in full, but only the first ~30s are transcribed. Voicebox 0.5.0, Windows 11, CUDA backend, Whisper Turbo.
This is fixed by #1151 (prepared from #616, thanks @NoxDecima): Whisper transcription on the PyTorch path now runs in long-form mode instead of stopping at the first 30-second window, and the MLX path already windowed the whole file. It is part of Voicebox 0.6.0. The 0.6.0 build is cut and is waiting on an Apple Developer account issue that blocks notarizing the macOS release; it will be published as soon as that clears. Closing as fixed; if you still see a cutoff on 0.6.0 once it is out, please reopen with details.