Description
whisper.cpp is a port of OpenAI's Whisper automatic speech recognition model in plain C and C++, with no dependencies. It runs the model locally, fully offline, so audio never has to leave the device. The README highlights hardware support: Apple Silicon is a first-class target, with optimization through ARM NEON, the Accelerate framework, Metal and Core ML, and the inference can run entirely on the GPU via Metal. It also has AVX support for x86, VSX support for POWER, Vulkan support, efficient GPU support for NVIDIA, AMD ROCm GPUs, an AMD Ryzen AI NPU, OpenVINO, Ascend NPU and Moore Threads GPUs. It supports mixed F16 and F32 precision and integer quantization, uses zero memory allocations at runtime, and has a C-style API and voice activity detection. It runs on macOS, iOS, Android, Java, Linux and FreeBSD, WebAssembly, Windows, Raspberry Pi and Docker. Its implementation of the model is contained in a small set of files, which makes it easy to embed in other applications. The quick start shows cloning the repository, downloading a converted ggml model, and building the whisper-cli example to transcribe a WAV file. The README notes that the command-line example takes 16-bit WAV files, so other audio should be converted first, for example with ffmpeg. Demos include an offline iPhone app and an offline voice assistant.…
Highlights
- Whisper speech recognition in plain C and C++ with no dependencies
- Runs fully offline on the device
- GPU support across Apple Metal, NVIDIA, AMD and others
- Quantization and voice activity detection
- Runs on mobile, desktop, WebAssembly, Raspberry Pi and Docker
Ratings & Reviews
No ratings yet
Be the first to rate Whisper.cpp.
People also visit
Whisper Android
Offline Speech Recognition with OpenAI Whisper and TensorFlow Lite for Android
Whisper.cpp FAQ
Does it need the internet?
No. The README describes the model running fully offline, on the device.
Which platforms run it?
macOS, iOS, Android, Java, Linux, FreeBSD, WebAssembly, Windows, Raspberry Pi and Docker.
What audio format does the example need?
The whisper-cli example takes 16-bit WAV files, so convert other audio first, for example with ffmpeg.
How do I start?
Clone the repository, download a ggml model, build whisper-cli and run it on a WAV file.
What are the best Whisper.cpp alternatives?
Popular alternatives to Whisper.cpp include Whisper Android, TheWhisper and Audio.cpp. See all Whisper.cpp alternatives