# Repository Briefing: handy-computer/transcribe.cpp
> Source: https://repoforai.com/repo/handy-computer/transcribe.cpp (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/handy-computer/transcribe.cpp
- **Official Docs / Website**: https://huggingface.co/handy-computer
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: C++
- **License**: MIT
- **Engineering Health**: A+ (92/100 · Maintenance 35/35 · Adoption 17/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.5.2 (2026-11-29) — https://github.com/handy-computer/transcribe.cpp/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Local AI, Self-Hosted, CLI, GPU
- **Momentum**: 2,230 ★ total (+4 24h / +19 7d) · 181 forks
- **Topics**: `asr`, `ggml`, `gguf`, `speech-to-text`
- **When to Use**: Best for: Offline transcription pipelines and embedded voice applications that need local inference, a choice of ASR models, and control over hardware and audio handling. Skip if: You need a managed transcription endpoint with no native runtime to operate, or require streaming, diarization, and timestamps to work identically across interchangeable models.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Model selection: 16 ASR families and more than 60 variants share one ggml runtime.
- Capability granularity: Moonshine Streaming provides streaming; GigaAM-v3 exposes token timestamps, while select Granite Speech variants cover word timestamps, diarization, and translation.
- Weight loading: CPU and Apple Silicon Metal memory-map GGUF weights; `--no-mmap` switches to copied weights.
- Backend coverage: tinyBLAS CPU path, Metal on Apple Silicon, Vulkan on Linux and Windows, and CUDA or HIP/ROCm on Linux.
- Packaging: Python separates the ctypes interface from the native provider; the Rust sys crate carries the C++ sources for source builds.
- Model evaluation: Releases publish a queryable `catalog.db` with a SHA-256 checksum, and project-published models are checked numerically and evaluated for WER against reference implementations.
```

## Quick Start / Clone
```bash
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
```
