Module f-stt · Voice · 8 min

STT pipelines
(Whisper).

Whisper architecture, alignment timestamps, language detection.

Reading time8 min Audio- Prerequisites21 SourceTrack A · Gemini
§ 1

What this lesson covers.

This module is one of 42 in the curriculum. Below is the canonical interactive lesson — tabs, cards, and diagrams from the source repo, rendered inside the course shell. There is no audio narration for this module - it ships as text + interactive lesson only.

If you prefer to read first and play with the demos after, the interactive lesson sits below this section. This legacy module is text and interaction only; there is no narration player on this page.

Read / reason / test

Words and their timing need separate checks

High school · build the intuition

Recognition estimates words; alignment estimates where they occur. If a word is wrong, precise-looking timestamps do not repair it. Compare difficult passages with a trusted reference. Silence, overlapping voices and unfamiliar names expose different failure modes. A clean short sample cannot establish broad accuracy, and a correct transcript does not automatically produce comfortably readable captions.

College · work the example

For a 20-word reference with two substitutions, one deletion and one insertion, word error rate is(2+1+1)/20=20%. It is not a timing metric. Two transcripts can share that rate while differing greatly in meaning. Inspect the errors themselves and evaluate alignment separately from recognition and caption readability.

Explain it back

Describe the process in your own words. Identify the assumption that makes this example work, then explain one conclusion it cannot establish.

Read the primary source or official documentation →

The numerical examples are authored teaching exercises, not measured model benchmarks. This extension adds context to the original lesson.

§ 2

The lesson itself.

Interactive lesson · ported from Gemini track Click tabs to navigate · hover cards for details
Voice · Recognition

STT Pipelines — Whisper Architecture

Robust speech recognition via large-scale weak supervision · alignment timestamps

WHISPER

An encoder-decoder family, with version-specific training

The original Whisper paper describes 680,000 hours of weakly supervised multilingual training audio. Later checkpoints use different data: large-v3 uses a mixture of one million weakly labeled and four million pseudo-labeled hours. The encoder represents audio; the decoder predicts text using cross-attention. A checkpoint name matters: do not transfer one version’s training data, input settings or benchmarks to the whole family.
INPUT REPRESENTATION

Log-mel features and 30-second windows

Audio is resampled to 16 kHz and converted to log-mel features. Earlier checkpoints use 80 frequency bins; large-v3 uses 128. A 30-second window has 3,000 feature frames at 100 frames per second. Convolutional downsampling produces 1,500 encoder positions. These audio positions are not text vocabulary tokens.
TIMESTAMPS

Segment tokens and word alignment are different

Timestamp tokens represent segment boundaries on a 20-millisecond grid. They do not directly give every word’s start and end. OpenAI’s word-timestamp implementation uses decoder cross-attention weights and dynamic time warping to align text with audio. WhisperX instead adds a separate forced-alignment stage. Resolution is not a guarantee of timing accuracy; inspect difficult speech, silence and overlaps.
DEPLOYMENT REALITY

Measure the chosen checkpoint and runtime

faster-whisper uses CTranslate2; whisper.cpp offers a native implementation. Speed depends on hardware, precision, batching, audio length and decoding settings. Distil-Whisper copies and freezes the teacher encoder and reduces decoder depth; it does not simply distill the encoder. Compare word error rate, latency and language coverage on your actual task rather than treating published speedups as universal guarantees.
§ PAPERS

Further reading.

The canonical references for this module. External links open in a new tab.

§ NEXT

What to read next.

Use the pager below to move sequentially through the curriculum, or jump to any module from the course index. Each track has a "Prereq: ↑ foundation" callout so you can backfill anything that wasn't clear.

Implementation references

Checked 29 October 2026. Benchmark results depend on checkpoint and evaluation setup.