Your First Transcript
Time to make the machine earn its keep.
You need a short piece of speech. The
lab used the eleven-second recording the
Whisper project itself tests with —
President Kennedy's "ask not what your
country can do for you" — which lives in
the project's repository at
tests/jfk.flac. Any short recording of
your own works just as well: a voice memo
copied to the machine is ideal, because
you already know what it should say.
The command
whisper jfk.flac --model tiny
Three things happen, in order.
The model downloads — once. A
progress bar fetches tiny (about
72 MB) into ~/.cache/whisper. Every
later run skips this. On a slow
connection this is the moment to make
tea; chapter 5's table gives every
model's download size so you can plan.
A warning appears, and it is fine. On a machine without a graphics card:
UserWarning: FP16 is not supported on CPU; using FP32 instead
FP16 is a half-precision number format graphics cards are good at. On CPU the program falls back to full precision automatically. The warning is noise, not an error — chapter 14 explains it once so you can ignore it forever.
The transcript prints, with timings. The lab's run (transcript t01):
Detected language: English
[00:00.000 --> 00:11.000] And so my fellow Americans,
ask not what your country can do for you, ask what
you can do for your country.
Whisper guessed the language from the first 30 seconds because none was given (chapter 7), and printed the text as one timed segment.
The output files
Printing is not all it did. Look at the folder:
ls
Next to the audio there are now five
files — jfk.txt, jfk.srt, jfk.vtt,
jfk.tsv and jfk.json. By default the
command writes every format it knows.
jfk.txt holds the words alone:
And so my fellow Americans, ask not what your
country can do for you, ask what you can do
for your country.
Send the outputs somewhere tidier with
--output_dir some/folder, and pick one
format with --output_format txt (or
srt, vtt, tsv, json). Chapter 6
is a tour of what each format is for.
Check: your .txt file exists and its
text matches what was actually said in
your recording — not approximately, but
word for word on a clear clip like this
one. If it does, everything in the chain
— model, program, ffmpeg — is working,
and the rest of this guide is about
doing it well: the right model
(chapter 5), the right format
(chapter 6), and the honest limits
(chapter 13).