whisper.cpp

whisper.cpp

Dependency-free C/C++ port of OpenAI's Whisper speech-to-text model with hardware acceleration across CPU, Metal, and CUDA.

★ 55.7K

Transcribe speech locally at high speed with whisper.cpp

Running OpenAI’s Whisper model in Python usually pulls in gigabytes of PyTorch dependencies, and cloud transcription APIs charge by the minute while sending private audio off your machine. whisper.cpp packs the entire Whisper automatic speech recognition engine into dependency-free C and C++. Backed by 55.7K GitHub stars and 6,400 forks under the MIT license, it runs offline on everything from an iPhone or Raspberry Pi to a multi-GPU workstation.

Why developers build on whisper.cpp

  • Zero runtime memory allocations and integer quantization shrink models down so the tiny model takes just 75 MiB on disk and under 300 MB of RAM.
  • Hardware backends accelerate inference across Apple Silicon (Metal, Core ML, and Apple Neural Engine), NVIDIA CUDA, AMD ROCm, Vulkan, OpenVINO, and x86 AVX intrinsics.
  • Built-in Voice Activity Detection (VAD) and real-time microphone capture make it easy to build local voice assistants or meeting transcribers.
  • Official bindings exist for Go, Rust, Python, Java, iOS, Android, and WebAssembly.

Practical caveats

The default whisper-cli binary expects 16-bit, 16 kHz mono WAV files, so you need an ffmpeg pre-conversion step before feeding it MP3 or M4A recordings. In addition, the first run with Core ML or OpenVINO takes a minute to compile a device-specific model cache.

Quick takeaway

If you need fast, private speech-to-text without Python bloat or cloud bills, clone whisper.cpp and run make base.en to test it in two minutes.

Ready to try whisper.cpp?

Experience the full capabilities on their official website.

Visit Official Website