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

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Source: osrepos.com
Repository profile: https://osrepos.com/repo/ggml-org-whisper.cpp
Generated for open source discovery and AI-assisted research.

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.

GitHub: https://github.com/ggml-org/whisper.cpp
OSRepos URL: https://osrepos.com/repo/ggml-org-whisper.cpp

## Summary

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.

## Topics

- c++
- speech-recognition
- machine-learning
- cli
- cross-platform
- privacy

## Repository Information

Last analyzed by OSRepos: Sat Oct 03 2026 15:54:48 GMT+0100 (Western European Summer Time)
Detail views: 69
GitHub clicks: 31

## Safety Notice

OSRepos shares public repositories for knowledge and discovery only. Review source code, dependencies, licenses, and security implications before running or installing anything.

## Content

## Overview

[whisper.cpp](https://github.com/ggml-org/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.

## Project Facts

- Language: C++
- License: MIT
- Stars: 54.1k
- Forks: 6.2k
- Topics: inference, openai, speech-recognition, speech-to-text, transformer, whisper
- Archived: No

## Getting Started

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

```bash
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](https://github.com/ggml-org/whisper.cpp#quick-start) for audio conversion, platform-specific builds, model choices, and further options.

## Alternatives

- [sherpa-onnx](https://osrepos.com/repo/k2-fsa-sherpa-onnx): Provides offline speech recognition plus text-to-speech and diarization, using ONNX Runtime rather than Whisper's C/C++ implementation.
- [Whisper Web](https://osrepos.com/repo/xenova-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](https://osrepos.com/repo/vaibhavs10-insanely-fast-whisper): Offers a Python command-line transcription workflow built on Transformers and GPU acceleration, rather than a lightweight C/C++ implementation.

## 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.