ggml-org

whisper.cpp: Transcribe Speech with Whisper in C/C++

whisper.cpp runs OpenAI Whisper speech recognition through a lightweight C/C++ implementation. It suits developers building offline transcription into applications across desktop, mobile, browser, and server environments.

View on GitHub Compare
Stars
54.1k
Forks
6.2k
Stars, last 30 days
+783

Our take

Health score

69/100

How it is scored
Activity
78
Community
86
Issues
54
Pull requests
58

+783 stars in the last 30 days

  • Merges more pull requests than 81% of the projects we track
  • More contributors than 78% of the projects we track

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

55,225

Forks

6,307

Change since Nov 15, 2026: +25 stars·+7 forks

Overview

whisper.cpp is a C/C++ implementation for running OpenAI Whisper speech recognition. It converts audio to text and can also translate speech, with inference available locally rather than requiring a hosted transcription service.

Its broad hardware and platform support makes it useful for developers who need to embed speech recognition in applications, from command-line tools to mobile apps and web deployments. It is an inference project, not a toolkit for training Whisper models.

Key Features

  • Runs Whisper models on CPUs and supports acceleration paths for several GPU and NPU platforms.
  • Supports quantized models to reduce model storage and memory needs.
  • Offers a C-style API alongside command-line, server, and platform examples.
  • Includes options for timestamps, voice activity detection, and experimental speaker segmentation.
  • Supports offline transcription on platforms including desktop, iOS, Android, and WebAssembly.
  • Provides an HTTP transcription server with an OpenAI-like API.

Use Cases

  • Application developers can add on-device transcription where audio should be processed locally or network access is unavailable.
  • Mobile developers can build speech-enabled iOS and Android apps using the provided examples or bindings.
  • Teams can run a local transcription endpoint for internal tools instead of sending audio to a hosted service.
  • Researchers and engineers can benchmark Whisper inference across models and hardware configurations.

Getting Started

Clone the repository, download a converted model, then build and run the CLI:

git clone https://github.com/ggml-org/whisper.cpp.git
cd whisper.cpp
sh ./models/download-ggml-model.sh base.en
cmake -B build && cmake --build build -j --config Release
./build/bin/whisper-cli -f samples/jfk.wav

The CLI example expects 16-bit WAV input by default. See the README for audio conversion, platform-specific builds, model choices, and further options.

Alternatives

  • sherpa-onnx: Provides offline speech recognition plus text-to-speech and diarization, using ONNX Runtime rather than Whisper's C/C++ implementation.
  • Whisper Web: Runs Whisper in the browser with Transformers.js, while whisper.cpp is a native C/C++ implementation for multiple platforms.
  • Insanely Fast Whisper: Offers a Python command-line transcription workflow built on Transformers and GPU acceleration, rather than a lightweight C/C++ implementation.
ProjectLanguageLicenseStarsStatus
whisper.cppC++MIT54.1kNot checked yet
sherpa-onnxC++Apache-2.015.1kActive
whisper-webTypeScript–3.3kInactive
insanely-fast-whisperJupyter NotebookApache-2.013.1kQuiet

Considerations

  • The repository supports inference only, not model training.
  • Model files can require substantial disk space and memory; the README lists estimates by model size.
  • Hardware acceleration requires platform-specific dependencies and build options. CPU inference is also supported.
  • Some capabilities, including word-level timestamps and speaker segmentation, are labeled experimental in the README.
  • The CLI example uses 16-bit WAV files by default. Broader format support may require enabling FFmpeg for examples.

Found this useful?

Share it with someone who would like whisper.cpp.

Comparisons