Skip to content

Explainer

Karaoke captions, and how word level timing actually works

Where per word timings come from, why words overlap more than you would expect, how a highlight gets expressed in a subtitle format, and the readability cost nobody mentions.

Mamane BelloMamane Bello4 min read

CastKit workspace with the speaker-labelled transcript of an episode, beside karaoke captions from word timing: Word timings from the transcript; Words overlap more than you think; Timings become the highlight; Preview and burn-in differ
Where word timings come from and how they become a highlight, beside a CastKit transcript. Screenshot of the live tool, November 2026.

A karaoke caption lights each word as it is spoken. You have seen thousands of them. The current word goes bright, the rest of the line stays plain, and the highlight moves along with the voice.

It looks like a styling decision. Underneath it is a timing problem, and the timings come from somewhere less tidy than the effect suggests.

Where the timings come from

They come out of the speech recogniser, not out of the editor. A modern recogniser does not return a block of text with one timestamp on it. It returns the words individually, each with its own start and end.

For the speech model CastKit measured here, each word arrives with the raw text, a punctuated form, start and end times in floating point seconds, a confidence, a speaker index with its own confidence, and a per-word language tag. The whole karaoke effect is a rendering of those two timestamps.

If your captions can be styled per word but not timed per word, the tool is guessing, usually by dividing a line's duration by its character count. That is why some karaoke captions drift on longer lines.

Words overlap more often than you would think

Word timings are not a clean grid, and it is worth knowing that before you write code that assumes they are.

On one clean two speaker podcast, we counted roughly 6 overlapping word pairs per 811 words: a word whose end timestamp runs past the next word's start. This was on a transcript that was otherwise exact, with all 811 words agreeing between the utterance list and the word list.

Speech does not arrive with gaps between words. An aligner placing a boundary inside a run-on or a breath produces exactly this, and it is common enough that a pipeline treating overlap as an error will fall over on real audio. Ours records it and carries on, because the alternative is throwing away a transcript over a few milliseconds.

For the caption layer this is a small, real decision: when two words overlap, does the highlight extend, truncate, or briefly cover both? Whichever you pick, do not rewrite the recogniser's output to make the question go away. Fixing the data upstream to simplify a renderer means every other consumer of those timings inherits your edit.

Your first episode is free, and your clips never expire.

Start free

From timings to a highlight

A karaoke line is a sequence of word events, each with a clock position, and the renderer walks it against the current playback time. Before the word's window, base style. Inside it, highlight style. After it, back to base.

The transition is a hard switch rather than a smooth ramp, and that is not laziness. There are no sub-word positions in the data. The recogniser knows when a word began and ended, not which phoneme is currently in the air, so interpolating a sweep across a word is inventing detail the timings do not contain.

In a subtitle file the same idea has a standard expression. The ASS format carries karaoke timing tags that give each syllable or word a duration in centiseconds, which a subtitle renderer turns into the moving highlight. That is why a burned-in caption and a browser preview can agree exactly: both are reading the same durations, one through a text layout engine and one through the DOM.

Keeping the timings and the styling separate is the part worth copying. Changing a highlight colour should never require touching the audio again.

Previewing and burning are two different problems

These get talked about as one feature and they have almost nothing in common.

  • A preview maps word timings onto playback position and updates the page. It is cheap, it is instant, and a wrong boundary is a data fix and a redraw.
  • A burn needs a decoder, a compositor applying the caption layer frame by frame, and an encoder. The style becomes pixels at a target resolution, and every change is a fresh render.

When this post was first written in August, CastKit only produced the word timings and the caption documents. Both halves exist now: the caption preview on the karaoke caption generator page is drawn in the browser by the same renderer that makes the export, so the highlight you see is the highlight that ends up in the MP4. This post is still about the mechanism rather than a walkthrough.

The readability cost nobody mentions

Karaoke captions get described as an accessibility feature reasonably often, and that is the one claim here worth pushing back on.

Static captions let a reader scan ahead, or go back over a phrase they missed. A word by word highlight pins the eye to the speaker's pace, which is the entire point of the effect and also its cost. On dense speech or a fast talker, being locked to that pace is harder work, not easier.

We have not run a readability study and are not going to cite one we did not run. What we can say is that the design goals genuinely pull in different directions: captions for people who cannot hear the audio want stability and legibility, and karaoke captions want motion and rhythm.

So treat them as what they are, which is a motion graphic that happens to contain the words. They earn their place in a short vertical clip competing for attention. They are a worse default for a forty minute talk, and describing them as an accessibility improvement gets the trade exactly backwards.

Mamane Bello

Mamane Bello

Founder

By day, Mamane builds tech for farmers. By night, he builds CastKit and a few other tools he wishes already existed. He loves hard problems, and making technology that works where it's hardest to make it work.

Send us an episode.

Paste the link and sign up. That episode is the first one we run.

Audio episodes usually finish in a few minutes. Or try it without an account