Whisper.cpp runs OpenAI Whisper ASR with a dependency-light C/C++ core and CLI tools. It targets CPUs and many GPU and NPU accelerators across common operating systems.
Overview
Whisper.cpp implements high-performance inference for OpenAI’s Whisper automatic speech recognition models using plain C and C++ atop the ggml library. The design keeps runtime memory allocations at zero and supports mixed FP16 and FP32 paths plus integer-quantized models to shrink disk and RAM use.
Hardware paths include Apple Silicon via NEON, Accelerate, Metal, and Core ML or ANEForge encoders; x86 AVX; POWER VSX; NVIDIA CUDA; AMD ROCm and Ryzen AI NPU; Vulkan; OpenVINO on Intel CPUs and GPUs; Huawei Ascend; and Moore Threads MUSA. A C-style API and bundled whisper-cli example make integration into applications straightforward.
Voice activity detection, streaming microphone demos, word-level timestamps, speaker segmentation experiments, and optional FFmpeg decoding broaden practical use. Pre-built Docker images ship the main binary with curl and ffmpeg, with CUDA, MUSA, and Vulkan variants available.
Documented platform support spans macOS, iOS, Android, Linux, FreeBSD, Windows, WebAssembly, Raspberry Pi, and containerized linux/amd64 and linux/arm64 images.
Key features
- Plain C/C++ Whisper implementation
- Integer quantization for smaller models
- Metal, CUDA, Vulkan, and OpenVINO backends
- Core ML and ANE encoder acceleration
- whisper-cli transcription tool
- Voice activity detection support
- Docker images for CPU and GPU builds
- C API for embedding in apps
Use cases
- Offline speech-to-text in desktop apps
- On-device transcription on mobile hardware
- Low-footprint ASR in embedded or edge setups
- Batch transcoding audio files via CLI