Purpose: whisper.cpp is a high-performance C/C++ inference implementation of the OpenAI Whisper automatic speech recognition (ASR) model, capable of completing speech-to-text locally and offline, making it easy to integrate into different platforms and applications.
Main capabilities: pure C/C++ implementation with no dependencies; supports Apple Silicon (ARM NEON, Accelerate, Metal, Core ML), x86 AVX, POWER VSX; supports F16/F32 mixed precision and integer quantization; zero memory allocation at runtime; supports pure CPU inference, as well as acceleration with NVIDIA CUDA, AMD ROCm, AMD Ryzen AI NPU, OpenVINO, Ascend NPU, Moore Threads GPU, etc.; built-in voice activity detection (VAD). Supports macOS, Linux/FreeBSD, Windows.
Usage: after cloning the repository, download the Whisper model in ggml format, build the whisper-cli example, and transcribe audio. For a quick demo, run make base.en, which will download the base.en model and process the .wav files in the samples directory. For detailed usage, run ./build/bin/whisper-cli -h. Note that whisper-cli currently only supports 16-bit WAV files, so input must first be converted using ffmpeg or similar.
Applicable scenarios: local offline speech transcription, offline voice assistants, mobile or embedded integration, etc.
Limitations: whisper-cli only accepts 16-bit WAV; acceleration such as Core ML and OpenVINO is slower on first run and requires waiting for on-device compilation; some acceleration solutions require installing additional dependencies and rebuilding.