opensourceprojects.dev

A broadsheet for software that doesn't ask for your email

Faster Whisper: up to 4x faster transcription using CTranslate2
GitHub RepoImpressions4

Project Description

View on GitHub

Faster Whisper: Up to 4x Faster Speech Transcription with CTranslate2

If you've ever used OpenAI's Whisper model for transcription, you know it's impressive but can be painfully slow, especially on CPU. Enter Faster Whisper — a reimplementation that runs the same model up to 4x faster using CTranslate2, a custom inference engine for transformer models.

The gist? Same accuracy, much less waiting. For developers building real-time transcription tools, batch processing pipelines, or just tired of whisper --model large taking ten minutes per file, this is a godsend.

What It Does

Faster Whisper is a drop-in replacement for OpenAI's Whisper model, but it replaces the original PyTorch backend with CTranslate2. CTranslate2 is a lightweight, optimized inference engine that uses int8 quantization and other tricks to speed up transformer inference on both CPU and GPU.

The repo provides a simple Python interface that mirrors Whisper's API, so you can swap import whisper for import faster_whisper with minimal code changes. It supports all Whisper model sizes — tiny, base, small, medium, large — and works on Linux, macOS, and Windows.

Why It’s Cool

The headline speed gain is nice, but here's what makes it stand out:

  • Up to 4x faster on CPU, 2-3x on GPU. That's not marketing fluff — benchmarks on common hardware show real improvements.
  • Memory efficient. CTranslate2's quantization reduces model size significantly, so you can run larger models with less RAM.
  • No accuracy loss. It's the same Whisper model weights, just compiled into a more efficient format. No weird hallucinations or degraded word error rates.
  • Batch processing built in. Process multiple audio files at once with GPU acceleration, great for large transcription jobs.
  • Simple API. Literally change your import and your code works. No complicated configs.

Use cases? Real-time subtitling for live streams, automated meeting notes, podcast transcription, voice assistants on edge devices, or just speeding up your personal audio-to-text workflow.

How to Try It

Installation is straightforward:

pip install faster-whisper

Then use it in Python:

from faster_whisper import WhisperModel

model = WhisperModel("base", device="cpu", compute_type="int8")
segments, info = model.transcribe("audio.mp3", beam_size=5)

print("Detected language '%s' with probability %f" % (info.language, info.language_probability))

for segment in segments:
    print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))

If you're on GPU, change device to "cuda" and optionally set compute_type="float16" for even more speed. That's it — no model downloading tricks, no environment variables.

For batch processing, feed it a list of file paths:

segments, _ = model.transcribe("lecture.mp3", batch_size=16)

Want to test it right away? The repo has a demo.py script you can run with sample audio.

Final Thoughts

Faster Whisper isn't reinventing the wheel — it's optimizing the one we already have. If you've ever been annoyed by Whisper's speed on consumer hardware, this project solves that problem without sacrificing quality. The CTranslate2 team (and SYSTRAN, the company behind it) clearly knows their inference optimization.

For developers building transcription features into apps, this is a no-brainer. It's production-ready, actively maintained, and the speed difference on CPU is genuinely surprising. I've started using it for my own podcast transcription scripts and haven't looked back.

Give it a try, and you might find yourself transcribing more files just because it's finally fast enough.


Follow @githubprojects for more developer tools and projects like this.

Back to Projects
Project ID: 884e165e-a080-4ae5-a4da-8bf2aec913d0Last updated: July 1, 2026 at 09:44 AM