Whisper-generated timeline bars don't align with the waveform

Open
#17,244 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
44/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp

Research direction

Start by reproducing the reported timing difference in Subtitle Edit v5.5.0-beta15 with Purfview Faster-Whisper-XXL, then trace how Whisper timestamps become timeline bar positions and compare them with waveform playback. The issue gives example generated and listened start times, but names no files or tests and does not establish whether the offset comes from transcription timestamps or timeline rendering. Done means identifying and correcting the cause so displayed subtitle timings match the speech timing.

Written by the indexing model from the issue text.

Description

First of all, I'm absolutely delighted with the new timeline track font size and bar color settings!

The improved readability has made positioning subtitles so much easier and more comfortable.
These changes have made a real difference to my daily workflow.

A huge thank you to Nick for implementing these settings,
and to bichitoxxx for creating issue #17119 and bringing attention to this improvement!

By the way,
while working with the timeline, I noticed something I'd like to bring up.

Why don't the Whisper-generated timeline bars align with the waveform?

I tested this using Purfview Faster-Whisper-XXL in Subtitle Edit v5.5.0-beta15.

For example,
I generated subtitles for the section from 00:30:42.626 to 00:30:53.618. Whisper produced the following start times:

・ 00:30:43.710

・ 00:30:46.870

・ 00:30:50.990

However, based on my own listening, I would place the starts at:

・ 00:30:44.310

・ 00:30:47.360

・ 00:30:51.680

This means the generated subtitles start approximately 490–690 ms earlier than where I hear the speech beginning.

The offset is not consistent, either.
(Is this just Whisper-kun being a little too tege-tege? 😄)

Since these timeline bars represent actual subtitle timings,
shouldn't they accurately correspond to the speech visible in the waveform?

Dominant language
C#
Stars
15.1k
Forks
1.4k
Avg merge
1h 58m
Merged PRs (30d)
564

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SubtitleEdit/subtitleedit

All issues in SubtitleEdit/subtitleedit

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.