handy-computer/transcribe.cpp
A ggml inference engine for local batch and streaming speech-to-text
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
transcribe.cpp is an embeddable C++17 inference engine. The public boundary is the C API in include/transcribe.h, used by transcribe-cli and wrapped by the official bindings. The engine loads GGUF models and executes model-family implementations in src/arch/ on vendored ggml. Parakeet and Cohere Transcribe have separate implementations: GGUF is the model container, not a way to run an arbitrary architecture without a port.
On CPU and Apple Silicon Metal, GGUF weights are mapped into the OS page cache instead of being copied into process-owned buffers. For models with adjacent packed FFN gate and up weights, the loader can alias both regions as one tensor, avoiding a second packed copy. It falls back to copying when device padding or a split mapping prevents aliasing. The build keeps ggml downstream patches in patches/ggml/, separate from the family-specific code.
Key Capabilities & Differentiators
One runtime covers batch and streaming transcription across 16 model families and more than 60 variants, but features must be selected per model. Moonshine Streaming is a streaming option; GigaAM-v3 and MedASR expose token timestamps; the Granite Speech 4/4.1 family includes variants with word timestamps, diarization, and translation. The CLI expects 16 kHz mono WAV, so other input formats need conversion before transcription.
Prebuilt GGUF weights are available on Hugging Face. For custom weights, the Parakeet converter supports NeMo checkpoints and the separate transcribe-quantize tool offers presets from F16 through Q4_K_M. The project-published models undergo numerical verification and word error rate (WER) testing against reference implementations. The release catalog.db records model metadata, accuracy, and performance, making it a useful first filter before testing on your own audio.
Trade-offs & Limitations
Compared with a hosted Whisper API, this engine gives the operator control over where audio is processed, which model runs, and how inference is embedded. In exchange, the operator owns model distribution, hardware and driver compatibility, and any service layer needed for a shared endpoint. Batch and streaming support are not interchangeable across families; confirm streaming, timestamps, speaker labels, and language coverage on the exact variant before committing to its output contract.
Quantization lowers weight storage, but the effect on accuracy and throughput depends on the model, quantization preset, and backend. Use the catalog to shortlist combinations, then measure error rate, peak RAM or VRAM, and throughput at target concurrency. When updating a memory-mapped model, replace the file atomically rather than rewriting it in place. The MIT engine license does not determine the terms of every model checkpoint; review weight licenses independently.
Hardware & Deployment Guide
Build the engine with CMake and a C++17 toolchain. Apple Silicon builds enable Metal automatically. On Linux or Windows, Vulkan needs its development tools and -DTRANSCRIBE_VULKAN=ON. On Linux, the CUDA path requires the CUDA toolkit and -DTRANSCRIBE_CUDA=ON; the HIP path requires ROCm 6.1 or newer, -DTRANSCRIBE_HIP=ON, and a target matching the AMD GPU. For an offline deployment, stage the native artifacts and GGUF files in advance, then run the CLI or embed the C API.
Python separates its ctypes interface from the transcribe-cpp-native provider. The platform wheel design pairs CPU with Vulkan on manylinux and Windows, and CPU with Metal on macOS arm64; a source install builds the native library. Rust’s transcribe-cpp-sys also bundles the C++ tree and declares Rust 1.82. The listed releases progress from v0.5.0 through v0.5.2, and the v0.5.2 sys manifest records the 1.82 floor for generated FFI. Start with ctest; real-model checks are opt-in and require a GGUF fixture.
--no-mmap switches to copied weights.catalog.db with a SHA-256 checksum, and project-published models are checked numerically and evaluated for WER against reference implementations.Offline transcription pipelines and embedded voice applications that need local inference, a choice of ASR models, and control over hardware and audio handling.
You need a managed transcription endpoint with no native runtime to operate, or require streaming, diarization, and timestamps to work identically across interchangeable models.
Quick Start & Installation
uv run scripts/catalog/format.py --check # canonical record layout uv run scripts/catalog/check.py # schema, integrity, pairing uv run scripts/catalog/render.py # rewrite the marked doc regions uv run scripts/catalog/render.py --check
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| transcribe.cpp ★ | 2.2k | +19 | C++ | MIT | A ggml inference engine for local batch and streaming speech-to-text |
| whisperX | 26.5k | +472 | Python | BSD-2-Clause | Batched Whisper with forced alignment for word timings and optional speaker labe |
| sherpa-onnx | 16.4k | +136 | C++ | Apache-2.0 | C++ and ONNX Runtime SDK for offline speech and real-time transcription |
| WhisperLiveKit | 11.3k | +27 | Python | Apache-2.0 | Self-hosted streaming speech-to-text with pluggable ASR and speaker diarization |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/handy-computer/transcribe.cpp.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about transcribe.cpp
What is the simplest way to integrate the engine?
include/transcribe.h directly, or use the official Python, TypeScript/JavaScript, Rust, or Swift/ObjC bindings. Python uses ctypes to call the native library. For file-based jobs, transcribe-cli is the simplest starting point; convert inputs to 16 kHz mono WAV first.How much RAM or VRAM should I budget?
Can I use it commercially and keep recordings on-premises?
When is it a better fit than a hosted Whisper API?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy