Audio / ML ·
Timestamp Drift in Whisper: Empirical Analysis and Reproducible Measurement
Systematic comparison between the true acoustic onset of post-pause words and Whisper's word-level timestamps
In automated subtitling and audio-visual synchronization workflows, Whisper—the open-source speech recognition model released by OpenAI in 2022—is widely used not only for transcription but also for estimating word-level timestamps. At CrisoLabs, we evaluated the temporal accuracy of these estimates for audio-visual alignment. Our initial hypothesis was that the model would exhibit a slight lag relative to the acoustic signal.
Empirical measurement revealed the opposite behavior: Whisper consistently anticipates word onsets, placing timestamps earlier than the actual sound.
What Was Measured
In continuous speech, phonetic boundaries between consecutive words lack a single unambiguous point of separation. To establish a physically grounded reference without relying on another learned model, we restricted our measurements to words spoken after a pause of at least 150 milliseconds. Under that condition, the transition from silence to speech produces an abrupt energy jump that can be detected directly from the waveform.
Measurement Methodology
- Direct acoustic reference. We wrote a deterministic 70-line Python detector (
detector.py) that scans the recording millisecond by millisecond, computes instantaneous signal energy, and marks the first millisecond where speech resumes after each silent interval. - Detector validation. Using
test_detector.py, the detector was tested against synthetic audio tracks with known onset positions. It achieved a median error of 0.2 ms and a worst-case error of 0.7 ms—three orders of magnitude smaller than the model drift under study. - Whisper evaluation. We ran
faster-whisper1.1.1 on CPU (without GPU acceleration) across three model sizes (base,small, andlarge-v3) in Spanish, with word-level timestamps enabled and all other parameters set to their defaults. - Error computation. For every word onset identified by the acoustic detector, we checked which word Whisper reported as active at that instant. Error was defined as the Whisper timestamp minus the true acoustic onset; negative values indicate that Whisper fired early.
The first dataset consisted of 38 recordings of the author’s voice (32 raw microphone recordings and 6 processed with Adobe Podcast Enhance), totaling roughly 16 minutes of audio. Source code and word-by-word logs are available in the experiment repository.
Findings on the First Dataset
| Model | Words | Median error | > 100 ms | > 200 ms | Worst case |
|---|---|---|---|---|---|
| base | 113 | −222 ms | 58% | 53% | 572 ms |
| small | 113 | −135 ms | 52% | 43% | 558 ms |
| large-v3 | 110 | −190 ms | 59% | 50% | 589 ms |
Source: resultados/resumen.md · word-level data in resultados/errores.csv.
All three models anticipate word onsets: at the median, Whisper places the start of a word between 135 ms and 222 ms before speech actually begins. In roughly half of all cases, the lead exceeds 200 ms—five to six frames at 25 fps—producing a visually noticeable desynchronization.
Scaling up the model does not resolve the drift. Although large-v3 contains roughly 20× more parameters than base and took 9× longer to process the same audio, it did not improve onset localization; its median error (−190 ms) was worse than that of small (−135 ms).
Validation Against Public Voices
To rule out speaker-specific artifacts, we repeated the protocol on 20 Argentine Spanish speakers from the public OpenSLR 61 corpus, ten female and ten male (Guevara-Rukoz et al., 2020), totaling 23 minutes of audio and roughly 167 post-pause words per model (experiment 02). The negative bias persisted across all three models:
| Model | Words | Median error | > 200 ms | Worst case |
|---|---|---|---|---|
| base | 167 | −165 ms | 41% | 566 ms |
| small | 169 | −162 ms | 42% | 566 ms |
| large-v3 | 166 | −330 ms | 73% | 597 ms |
Source: 02/resultados/resumen.md · word-level data in 02/resultados/errores.csv.
On this independent corpus, large-v3 performed worst, anticipating word onsets by a third of a second (−330 ms) at the median, with 73% of words drifting by more than 200 ms.
Why It Happens
In the first dataset, most early words (between 67% and 83% depending on the model; donde_cae.json) share a clear pattern: Whisper places the word onset before the pause even begins, overlapping the tail of the preceding word. In effect, the model stitches consecutive words together and fails to account for the intervening silence. On the public voices dataset, large-v3 exhibits this pattern in 64% of cases, while base and small do so in roughly one-third; in the remaining cases, the timestamp falls inside the silence, still ahead of the actual onset.
This behavior stems from Whisper’s architecture. The model was not trained for explicit temporal alignment; word-level timestamps are derived indirectly from internal cross-attention patterns (Radford et al., 2022), which do not explicitly model silent intervals. This limitation is why hybrid pipelines such as WhisperX pair voice activity detection (VAD) with a dedicated alignment model (Bain et al., 2023), alongside classical forced aligners such as Montreal Forced Aligner (McAuliffe et al., 2017).
We also verified that the effect was not driven by the first word of each recording: removing file-initial words leaves the median error between −178 ms and −281 ms.
Practical Mitigation
In CrisoLabs’ production workflow, Whisper timestamps are treated strictly as a coarse search window. For each word, we locate the exact millisecond of energy onset directly in the audio signal and anchor synchronization to that physical boundary rather than relying on the model’s indirect estimate.
Scope and Limitations
- Single language and dialect. The 20 public speakers represent Argentine Spanish. To ensure clean pauses, each test file was constructed by concatenating isolated utterances from the same speaker separated by real silences from the corpus; those pauses do not necessarily match spontaneous intra-sentence pauses.
- Continuous speech excluded. Only post-pause words were measured. In continuous speech, there is no silent gap for Whisper to skip, so onset error is likely smaller, though unmeasured here.
- Default configuration. Enabling VAD filtering or using an external aligner such as WhisperX changes the resulting timestamps.
- Soft consonants. The energy-based detector can miss by a few milliseconds on low-energy voiceless fricatives such as s or f, a margin negligible compared to Whisper’s observed lead.
Reproducibility
git clone <repo> # link once public
cd experimentos/01-whisper-arranque-palabras
pip install -r ../../requirements.txt
python3 test_detector.py && python3 medir.py && python3 graficos.py && python3 donde_cae.py
To evaluate custom recordings, register audio paths in datos/manifest.json.
Full references are listed in referencias/.