whisper.cpp
FreePort of OpenAI's Whisper model in C/C++. #opensource
About whisper.cpp
whisper.cpp is a high-performance C/C++ implementation of OpenAI's Whisper automatic speech recognition (ASR) model. It provides plain C/C++ code with no external dependencies, optimized for Apple Silicon via ARM NEON, Accelerate, Metal, and Core ML, and supports x86 through AVX intrinsics, POWER architectures via VSX, and a variety of GPU backends such as Vulkan, CUDA, ROCm, OpenVINO, and Ascend NPU. The library features mixed F16/F32 precision, integer quantization, zero memory allocations at runtime, and Voice Activity Detection (VAD). It runs on Mac OS, iOS, Android, Linux, FreeBSD, WebAssembly, Windows, Raspberry Pi, and Docker, making it suitable for offline and on-device speech recognition applications.
Key Features
Pros & Cons
- High-performance inference with minimal overhead
- Lightweight and dependency-free C/C++ codebase
- Broad platform support including Apple Silicon, x86, ARM, and POWER
- Multiple GPU backends for accelerated inference
- Integer quantization reduces memory footprint
- Zero runtime allocations for predictable performance
- CLI example only accepts 16-bit WAV input, requiring audio conversion for other formats
- Not a standalone application; requires C/C++ development knowledge to integrate
- Documentation is limited to the GitHub README and examples