Plain faster-whisper transcribes one segment after another. When you have a long recording, that is slow — and the project’s own benchmark table shows why batching matters: on the large-v2 model on a GPU, the README’s table reports 1 minute 3 seconds without batching and 17 seconds with batch_size=8. The fix is the batched transcription pipeline, which processes several segments together. This guide is about batching for speed; it is different from the word-timestamps guide, which is about per-word timing, and from the VAD filter guide, which is about skipping silence.
Install faster-whisper
The module is installed from PyPI, and the README says it needs Python 3.9 or greater:
pip install faster-whisper
Unlike openai-whisper, FFmpeg does not need to be installed on the system: the audio is decoded with the Python library PyAV, which bundles the FFmpeg libraries in its package. GPU execution needs NVIDIA libraries, but the batched pipeline works on CPU too — the README’s CPU table also shows a batching gain, with the small model dropping from 2 minutes 37 seconds to 1 minute 6 seconds at batch_size=8.
Wrap the model in the batched pipeline
BatchedInferencePipeline.transcribe is a drop-in replacement for WhisperModel.transcribe, so the code around it stays the same. The README’s own example uses the turbo model on a GPU:
from faster_whisper import WhisperModel, BatchedInferencePipeline
model = WhisperModel("turbo", device="cuda", compute_type="float16")
batched_model = BatchedInferencePipeline(model=model)
Then transcribe with a batch size:
segments, info = batched_model.transcribe("audio.mp3", batch_size=16)
for segment in segments:
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
One thing to remember: segments is a generator, so the transcription only starts when you iterate over it. Gathering the segments in a list or a for loop is what actually runs the transcription.
Check the speed and the trade-off
Run the same file twice — once with the plain model.transcribe and once with the batched pipeline — and compare the wall-clock time. The README’s benchmark numbers are its own measurements on an NVIDIA RTX 3070 Ti with CUDA 12.4 for the GPU table and an Intel Core i7-12700K with 8 threads for the CPU table, so your own numbers will differ; what matters is whether the batched run is clearly faster on your machine. The trade-off is memory: the same GPU table shows VRAM rising from 4525 MB to 6090 MB at batch_size=8 in fp16, so a bigger batch needs more memory. The VAD filter is enabled by default for batched transcription, which also helps, since silence is skipped instead of transcribed.
| Check | What you should see | If you do not see it |
|---|---|---|
| Installed | pip install faster-whisper finishes on Python 3.9 or greater |
Check the Python version — the README requires 3.9 or greater |
| Wrapped | BatchedInferencePipeline(model=model) returns a pipeline object |
Import both names: from faster_whisper import WhisperModel, BatchedInferencePipeline |
| Transcribed | batched_model.transcribe("audio.mp3", batch_size=16) returns segments with start, end, and text |
Segments are a generator — iterate over them with a for loop or list(), or nothing runs |
| Faster | The batched run finishes sooner than the plain run on the same file | Try a larger batch_size — but watch memory, since a bigger batch uses more of it |
Expected result. We checked the faster-whisper README for the pip install, the Python 3.9 requirement, the Batched Transcription section with BatchedInferencePipeline and batch_size=16, the drop-in replacement note, the generator warning, the VAD filter being on by default for batched transcription, and the benchmark tables with the 1m03s to 17s GPU gain and the 2m37s to 1m06s CPU gain at batch_size=8. We did not run faster-whisper or transcribe any audio.
Limits
Batching trades memory for speed: the README’s own tables show more VRAM and RAM used with a batch size than without, so a batch that is too large can run out of memory. The benchmark times quoted here are the README’s measurements on its own hardware, not ours — treat them as the project’s claim about the gain, and measure your own. A batch size is not a model choice: it does not change which Whisper model you use, only how its work is grouped. We did not run faster-whisper, so no timing here is a recorded result.
