New Tool Radar

Local AI

How to Compare whisper.cpp and faster-whisper for Transcription Speed

Transcribe the same recording with whisper.cpp and faster-whisper and compare speed and accuracy.

Schematic illustration with three step boxes for How to Compare whisper.cpp and faster-whisper for Transcription Speed.

whisper.cpp is a C++ port of Whisper with no Python runtime, while faster-whisper is a CTranslate2 reimplementation that runs about four times faster than the original with the same accuracy. Both run locally and offline. This guide transcribes the same recording with both and compares time and transcript quality.

Before you start

  • A computer with a compiler toolchain for whisper.cpp, and Python 3.10 or newer for faster-whisper.
  • ffmpeg installed.
  • One audio file of about five minutes, with clear speech.

Transcribe with whisper.cpp

Build whisper.cpp, download a model such as base.en, and transcribe with timing:

time ./build/bin/whisper-cli -m models/ggml-base.en.bin -f talk.wav -otxt

Note the time and save the transcript.

Transcribe with faster-whisper

Install faster-whisper and transcribe the same file with the same size model:

pip install faster-whisper
python -c "from faster_whisper import WhisperModel; m = WhisperModel('base', device='cpu', compute_type='int8'); s, i = m.transcribe('talk.wav'); print(''.join(x.text for x in s))"

Time this run too.

Compare the transcripts and the times

Put the two transcripts side by side and count the differences in the first minute. Compare the times: faster-whisper is usually several times faster on CPU. Note which one you would pick for a one-off file and which for a folder of files.

Worked example

Sample check: a five-minute talk that begins “Welcome to the workshop on garden design.” Both transcripts should contain those words in that order. Count the word differences in the first minute: if either has more than a few, that tool is the weaker one for this recording.

Expected result

UNTESTED in this guide: no transcription was run while writing it. The expected result is that both transcripts match the opening words, faster-whisper finishes several times faster, and the word differences in the first minute are few.

Limitations

Speed depends on your CPU, the model size and the compute type, so one run is not a benchmark. whisper.cpp has no Python dependency and ships as a single binary, which matters for offline distribution. faster-whisper needs Python and downloads models from Hugging Face on first use.

Sources

See all