ggml-org/whisper.cpp

Port of OpenAI's Whisper model in C/C++

What it solves

whisper.cpp is a high-performance, lightweight implementation of OpenAI's Whisper automatic speech recognition (ASR) model. It enables efficient, offline, on-device transcription of audio to text across a vast array of hardware platforms without requiring heavy dependencies.

How it works

Built in plain C/C++, the project uses the ggml machine learning library to handle inference. It optimizes performance through hardware-specific intrinsics (like ARM NEON and AVX) and supports a wide range of accelerators, including NVIDIA GPUs (CUDA), AMD GPUs (ROCm/HIP), Vulkan, Apple Silicon (Metal/Core ML), and various NPUs (AMD Ryzen AI, Ascend, OpenVINO). It also supports integer quantization to reduce memory and disk usage.

Who it’s for

It is designed for developers who want to integrate high-quality speech-to-text capabilities into applications that must run locally, offline, or on resource-constrained devices like iPhones, Android phones, Raspberry Pi, and WebAssembly environments.

Highlights

  • Zero-dependency C/C++ implementation: Easy to port and integrate into existing software.
  • Broad Hardware Acceleration: Native support for CUDA, ROCm, Metal, Vulkan, and multiple NPU architectures.
  • Extreme Portability: Runs on macOS, iOS, Android, Linux, Windows, FreeBSD, and WebAssembly.
  • Memory Efficient: Supports integer quantization and zero memory allocations at runtime.

Related

  • Project
  • Project
  • Project
  • Project
  • Project