Transcribing one recording at a time works, but a folder of voice memos, meeting recordings, or interview files calls for a batch: start one run, walk away, and come back to one transcript per file. Whisper supports that two ways — the command line takes several files in a single call, and the Python library lets you loop over a folder with the model loaded once. This guide covers the batch; the single-file first transcription is a different guide.
Put the recordings in one folder
Collect the files you want transcribed into one folder, for example recordings, with three practice files in it:
| File | Spoken sentence (practice) |
|---|---|
note-01.wav |
The lighthouse keeper named Mara checked the lamp at noon. |
note-02.wav |
The supply boat arrives on Tuesdays. |
note-03.wav |
The harbour office opens at eight in the morning. |
Whisper needs ffmpeg installed separately from the Python package — the README’s setup section lists it first, with the install command for each platform — and the model weights download on first use.
Run the batch from the command line
The README’s command-line example already passes more than one file to a single call:
whisper note-01.wav note-02.wav note-03.wav --model base
The default model is turbo; base is the small, fast choice used here (74 M parameters, about 1 GB of VRAM, about 7x the speed of the large model in the README’s table). Pass the files by name, or use your shell’s wildcard to take the whole folder: whisper recordings/*.wav --model base.
Or loop over the folder in Python
If you want one plain-text transcript next to each recording, loop in Python instead. A Whisper batch guide gives this pattern — load the model once, before the loop, then write each result to a .txt file named after its recording:
import whisper
from pathlib import Path
model = whisper.load_model("base")
audio_dir = Path("./recordings")
for audio_file in audio_dir.glob("*.mp3"):
print(f"Processing {audio_file.name}...")
result = model.transcribe(str(audio_file))
output = audio_dir / f"{audio_file.stem}.txt"
output.write_text(result["text"])
print(f" Saved to {output}")
Loading the model once before the loop matters: the guide warns that each load_model call reads the weights from disk and allocates GPU memory, so reloading per file multiplies the startup time. To cover more than one format, loop over several extensions — *.mp3, *.wav, *.m4a, *.ogg, *.flac — instead of one.
| Check | What you should see | If you do not see it |
|---|---|---|
| Files | Three recordings sit in the recordings folder |
The wildcard or glob matched nothing — check the folder path and the extension |
| Model | The model loads once, then every file is transcribed | It reloads per file — move load_model above the loop |
| Transcripts | note-01.txt, note-02.txt, and note-03.txt each exist |
Only one transcript appeared — a later file overwrote an earlier one with the same name |
| Content | Each transcript holds its own recording’s sentence | A transcript holds another file’s words — the output names collided |
Expected result. We checked OpenAI Whisper’s own README for the multi-file command and the model table, and a third-party Whisper guide for the Python folder loop and the load-once warning. We did not run Whisper.
Limits
The batch runs files one after another, so the total wait is the sum of the files — a bigger model is slower per file, and the README’s relative speeds were measured on an A100, so your speed will differ. The practice sentences above are fictional; use your own recordings and check each transcript against what was actually said. The .en models are English-only and tend to perform better for English-only audio, according to the README, while turbo is not trained for translation — use a multilingual model if you need translation. We did not run Whisper, so no transcript here is a recorded result.
Sources
- OpenAI Whisper README — pip install -U openai-whisper, ffmpeg requirement, whisper audio.flac audio.mp3 audio.wav –model turbo, model size table, .en models, turbo not trained for translation
- Whisper Python guide (third-party) — batch process a folder: load_model once, glob *.mp3, write each result to a .txt file, loop over extensions, load-once warning
