{"name":"whisper.cpp: Transcribe Speech with Whisper in C/C++","description":"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","url":"https://osrepos.com/repo/ggml-org-whisper.cpp","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/ggml-org-whisper.cpp","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/ggml-org-whisper.cpp.md","json":"https://osrepos.com/repo/ggml-org-whisper.cpp.json","topics":["c++","speech-recognition","machine-learning","cli","cross-platform","privacy"],"keywords":["c++","speech-recognition","machine-learning","cli","cross-platform","privacy"],"stars":null,"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.","content":"## Overview\n\n[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.\n\nIts 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.\n\n## Key Features\n\n- Runs Whisper models on CPUs and supports acceleration paths for several GPU and NPU platforms.\n- Supports quantized models to reduce model storage and memory needs.\n- Offers a C-style API alongside command-line, server, and platform examples.\n- Includes options for timestamps, voice activity detection, and experimental speaker segmentation.\n- Supports offline transcription on platforms including desktop, iOS, Android, and WebAssembly.\n- Provides an HTTP transcription server with an OpenAI-like API.\n\n## Use Cases\n\n- Application developers can add on-device transcription where audio should be processed locally or network access is unavailable.\n- Mobile developers can build speech-enabled iOS and Android apps using the provided examples or bindings.\n- Teams can run a local transcription endpoint for internal tools instead of sending audio to a hosted service.\n- Researchers and engineers can benchmark Whisper inference across models and hardware configurations.\n\n## Project Facts\n\n- Language: C++\n- License: MIT\n- Stars: 54.1k\n- Forks: 6.2k\n- Topics: inference, openai, speech-recognition, speech-to-text, transformer, whisper\n- Archived: No\n\n## Getting Started\n\nClone the repository, download a converted model, then build and run the CLI:\n\n```bash\ngit clone https://github.com/ggml-org/whisper.cpp.git\ncd whisper.cpp\nsh ./models/download-ggml-model.sh base.en\ncmake -B build && cmake --build build -j --config Release\n./build/bin/whisper-cli -f samples/jfk.wav\n```\n\nThe 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.\n\n## Alternatives\n\n- [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.\n- [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.\n- [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.\n\n## Considerations\n\n- The repository supports inference only, not model training.\n- Model files can require substantial disk space and memory; the README lists estimates by model size.\n- Hardware acceleration requires platform-specific dependencies and build options. CPU inference is also supported.\n- Some capabilities, including word-level timestamps and speaker segmentation, are labeled experimental in the README.\n- The CLI example uses 16-bit WAV files by default. Broader format support may require enabling FFmpeg for examples.","metrics":{"detailViews":69,"githubClicks":31},"dates":{"published":null,"modified":"2026-10-03T14:54:48.000Z"}}