The Moving Parts
Four parts. Knowing which part does what turns most surprises into named problems.
The model
The intelligence lives in a model
file: the trained network, downloaded
once from OpenAI's servers and kept in
~/.cache/whisper (a different folder
can be chosen with --model_dir). The
files are named by size — tiny.pt,
base.pt, and so on. Measured in the
lab: tiny.pt is about 76 MB on disk,
base.pt about 145 MB.
The model never changes and never learns from your recordings. Every run starts from the same weights. That is a feature: results are repeatable, and nothing you transcribe leaves the machine or trains anything.
The whisper program
The whisper command (and the Python
package behind it) loads a model, reads
audio, and runs inference — the
model's one job, turning sound into
tokens of text. It is built on PyTorch,
which is why installing it pulls in a
large machine-learning library
(chapter 3).
Internally the audio is processed in 30-second windows. Long files are worked through window by window, which is why transcription time grows steadily with recording length rather than exploding.
ffmpeg
Whisper does not read MP3, M4A or video files itself. It hands every input to ffmpeg, the standard audio/video tool, which decodes whatever you give it into the raw 16 kHz sound the model expects. Two consequences:
- Almost any format works, including the audio track of a video file, because ffmpeg handles it.
- If ffmpeg is missing, nothing works — it is a hard requirement, checked in chapter 3.
The outputs
A run produces files next to your choice of output folder, one per format (chapter 6): plain text, two subtitle formats, a tab-separated timing file, and a JSON document that carries the segments, the detected language, and — if you ask — a start and end time for every word.
Check: the parts, named
Point at any step and name the part responsible: a wrong word is the model; a file that won't open is ffmpeg's territory; a long wait at the start is the program loading the model; a missing subtitle file is an output option. Every chapter that follows hangs on one of those four hooks.