Softcatala/whisper-ctranslate2
CTranslate2-powered Whisper CLI for local speech transcription
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
Softcatala's whisper-ctranslate2 is an MIT-licensed Python CLI that retains the OpenAI Whisper command-line interface while moving model execution to faster-whisper and CTranslate2. CTranslate2 provides x86-64 and AArch64 CPU support and an NVIDIA GPU path. The dependency manifest lists faster-whisper>=1.2.0, ctranslate2, numpy, tqdm, and sounddevice, and constrains PyAV to av>=11,<19: faster-whisper 1.2.1 passes metadata_errors to av.open(), which PyAV 19 removed.
File transcription and live microphone capture are exposed through the same entrypoint, whisper-ctranslate2. Silero VAD can filter non-speech before decoding; optional pyannote.audio diarization adds segment-level speaker labels to output such as JSON, VTT, and SRT. For integration, plan around the CLI and its files rather than assuming a network endpoint or a service-level concurrency model.
Key Capabilities & Differentiators
The CLI handles multilingual speech transcription and speech translation into English only. --live_transcribe True enables microphone input, and --print_colors True visualizes word confidence in the terminal. --model_directory accepts local Whisper models, including fine-tuned or quantized weights, once they have been converted to CTranslate2 format. Use --device and --device_index to override automatic hardware selection, and --compute_type to choose a precision such as int8, float16, or float32 as appropriate for the device.
--batched True uses VAD and decodes segments independently, with --batch_size controlling how many decoding requests the model handles in parallel. Outside that choice, --vad_filter can be enabled explicitly and tuned with a speech threshold and minimum or maximum speech duration. Optional diarization assigns labels at segment granularity, not word granularity; labels such as SPEAKER_00 distinguish speakers within the transcript without establishing their real-world identities.
Trade-offs & Limitations
Compared with the original OpenAI Whisper CLI, the main migration benefit is familiar command syntax with additional controls for precision, hardware placement, and batching. Treat batching as a decoding change, not just a speed switch: it ignores condition_on_previous_text, prefix, and thresholds such as logprob_threshold and no_speech_threshold. Benchmark throughput on representative audio and compare transcripts on long recordings where context across segments matters before enabling it by default.
Compared with a hosted Whisper API, local inference can keep audio on the host and gives you direct control over model placement and precision. In return, you manage model files, CUDA compatibility, and compute capacity. Start with CPU int8 if throughput requirements are modest, then size RAM or VRAM on the target machine using the intended model, precision, and batch size. MIT licensing applies to the repository code; separately review the terms for dependencies and model artifacts you plan to redistribute.
Hardware & Deployment Guide
Install the Python package with pip install whisper-ctranslate2, or use ghcr.io/softcatala/whisper-ctranslate2:latest. The Dockerfile uses nvidia/cuda:12.3.2-cudnn9-runtime-ubuntu22.04, preloads small, medium, and large-v2, and sets whisper-ctranslate2 as the entrypoint. The container example mounts files at /srv/files/ and exposes GPU 0 with --gpus "device=0"; omit that flag for CPU execution. Native NVIDIA GPU execution requires CUDA 12 cuBLAS and cuDNN 9.
For disconnected transcription, preload the chosen model or mount it from a persistent volume and select it with --model_directory. Diarization has a separate setup path: install pyannote.audio==4.0, accept the conditions for pyannote/speaker-diarization-community-1, and provide a Hugging Face token with --hf_token. Keep that token out of shared scripts and logs. No tagged release milestone is available for version selection here; for reproducible deployments, record the tested package and dependency versions or pin the container digest rather than relying on latest.
faster-whisper>=1.2.0 and CTranslate2.--batched True decodes VAD-derived segments independently, with --batch_size controlling decoding parallelism.--device, --device_index, and --compute_type select placement and precision; CPU int8 is available.--model_directory loads fine-tuned or quantized Whisper weights in CTranslate2 format.pyannote.audio.ghcr.io/softcatala/whisper-ctranslate2:latest preloads small, medium, and large-v2.Local transcription pipelines that already use the Whisper CLI, subtitle jobs, and offline or GPU-backed batch runs with explicit control over model and precision.
You need a managed API, a network streaming service with defined latency guarantees, translation into languages other than English, or verified speaker identities.
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| whisper-ctranslate2 ★ | 1.4k | +2 | Python | MIT | CTranslate2-powered Whisper CLI for local speech transcription |
| whisperX | 26.5k | +677 | Python | BSD-2-Clause | Batched Whisper with forced alignment for word timings and optional speaker labe |
| WhisperLiveKit | 11.3k | +27 | Python | Apache-2.0 | Self-hosted streaming speech-to-text with pluggable ASR and speaker diarization |
| mlx-audio | 8.4k | +32 | Python | MIT | MLX inference SDK for local speech and audio pipelines on Apple Silicon |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Softcatala/whisper-ctranslate2.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about whisper-ctranslate2
How should an existing Whisper integration call this tool?
whisper-ctranslate2 as a subprocess and read its output files; JSON is a practical choice for downstream processing. Start from your existing OpenAI Whisper CLI arguments, then test the options and output fields your pipeline depends on. In particular, --batched True ignores several decoding controls, so CLI compatibility does not imply identical behavior in batch mode.How should I size CPU, RAM, and VRAM for a deployment?
small or medium and benchmark CPU --compute_type int8 before adding a GPU. On NVIDIA, test the intended model, compute type, and --batch_size together on representative recordings. If you need diarization, measure its overhead separately. There is no fixed VRAM figure that applies across these configurations.Can I use it commercially or ship it in a self-hosted image?
When is this preferable to the original Whisper CLI or 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