zackees/transcribe-anything
Multi-backend local CLI for transcribing files and URLs into text and subtitles
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-anything is a Python CLI that orchestrates transcription rather than implementing a new inference engine. It takes local media or a supported URL, uses yt-dlp for URL ingestion and static-ffmpeg to normalize audio to 16-bit WAV, then dispatches through --device or hardware auto-detection. The manifest includes webvtt-py for WebVTT handling and uv-iso-env for isolated runtimes.
Each backend gets a separate environment provisioned on first use, keeping incompatible PyTorch, accelerator, and model-library dependencies out of the caller's environment. Backend selection and argument forwarding are the main integration points: arguments the wrapper does not recognize pass through to the selected transcriber, so their semantics are not portable across backends. ARCHITECTURE.md describes microphone capture and hotkey activation as a live-transcription design; it does not establish that a production streaming interface ships today.
Key Capabilities & Differentiators
The CLI routes CPU/CUDA to reference Whisper, insane and insane-flash to a batched Hugging Face inference pipeline, and mlx to lightning-whisper-mlx for Apple Silicon. The experimental xpu path uses PyTorch XPU on supported Intel GPUs. WhisperX adds VAD, wav2vec2 forced alignment, and optional pyannote diarization, while FunASR SenseVoice covers Mandarin, Cantonese, English, Japanese, and Korean with optional CAM++ diarization.
Outputs include out.txt, out.srt, out.vtt, and out.json; speaker.json is available on compatible paths, not reference CUDA. On insane and insane-flash, --align adds word timing and refines subtitle segment boundaries when alignment succeeds. The CLI can burn subtitles into a video with --embed. MLX supports an initial vocabulary prompt but does not expose advanced Whisper options such as --temperature and --word_timestamps.
Trade-offs & Limitations
Compared with running reference Whisper directly, this wrapper saves integration work for URL ingestion, hardware selection, captions, and speaker-oriented output, at the cost of more environments to provision and maintain. Compared with a hosted Whisper API, local inference keeps media out of a managed transcription service but shifts driver compatibility, model storage, and capacity planning to the operator. That privacy advantage does not make URL retrieval or initial downloads offline.
Batched large-v3 can trade quality for throughput: repeated text and misaligned subtitle timestamps are known failure modes, and large batches can exhaust VRAM. Smaller batches reduce memory pressure; forced alignment can improve timing when supported, but falls back to the original output with a warning if it fails. The repository's MIT label conflicts with the BSD-3-Clause declaration in pyproject.toml; resolve that discrepancy and verify third-party model terms before redistribution.
Hardware & Deployment Guide
Install with pip install transcribe-anything on Python 3.10 or newer. The first invocation for each backend provisions its environment and may download model weights, so prewarm the selected backend and models before relying on offline processing of local files. TRANSCRIBE_ANYTHING_CACHE_DIR can point to writable storage for shared read-only installs or containers. Docker Compose builds the local Dockerfile, requests GPU access, and maps host port 8092 to container port 80; that mapping alone does not establish an API contract. A Nix flake is included, while the RunPod serverless path is a separately maintained community fork.
The 4.1 line added experimental Intel XPU support on Windows and Linux, and v4.1.1 fixed isolated Python selection for XPU setup on Python 3.14 hosts. v4.1.2 fixed shell injection in subtitle embedding. On CUDA, insane-flash requires a compatible pinned wheel and checks the compiled extension before transcription, failing early rather than silently falling back.
insane-flash checks the compiled FlashAttention2 extension up front and requires a supported pinned wheel.--align reuses WhisperX wav2vec2 alignment on the batched path and preserves the original result with a warning if alignment fails.speaker.json.Batch transcription of interviews, podcasts, and video archives where you want local inference, standard subtitle files, and optional speaker labels or word timings.
You need a production live-audio streaming API, a uniform output contract across every backend, or managed throughput without maintaining GPU drivers and model caches.
Quick Start & Installation
pip install transcribe-anything # Basic usage - CPU mode (works everywhere, slower) transcribe-anything "https://www.youtube.com/watch?v=dQw4w9WgXcQ" # GPU accelerated (Windows/Linux) transcribe-anything "https://www.youtube.com/watch?v=dQw4w9WgXcQ" --device insane # GPU accelerated with guaranteed FlashAttention2 where supported transcribe-anything "https://www.youtube.com/watch?v=dQw4w9WgXcQ" --device insane-flash # Mac Apple Silicon accelerated transcribe-anything "https://www.youtube.com/watch?v=dQw4w9WgXcQ" --device mlx # Advanced options (see Advanced Options section below for full details) transcribe-anything video.mp4 --device mlx --batch_size 16 --verbose transcribe-anything video.mp4 --device insane-flash --batch-size 8
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| transcribe-anything ★ | 1.5k | +1 | Python | MIT | Multi-backend local CLI for transcribing files and URLs into text and subtitles |
| WhisperLiveKit | 11.3k | +27 | Python | Apache-2.0 | Self-hosted streaming speech-to-text with pluggable ASR and speaker diarization |
| whisperX | 26.5k | +677 | Python | BSD-2-Clause | Batched Whisper with forced alignment for word timings and optional speaker labe |
| buzz | 23.3k | +171 | Python | MIT | Whisper-powered Python desktop app for local audio transcription and translation |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/zackees/transcribe-anything.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about transcribe-anything
How should I integrate it into an existing media pipeline?
transcribe-anything with a local file or supported URL, select a backend with --device, and consume out.json for structured results or out.srt and out.vtt for captions. Test the exact backend and options you intend to deploy: word timings and speaker artifacts are not uniform, and unrecognized wrapper arguments are forwarded to the backend.How much GPU memory and disk space should I budget for?
insane backend, --batch-size 8 is a documented starting point on a 12 GB card, not a minimum requirement or an out-of-memory guarantee. Large jobs can exhaust VRAM even on that class of card. Size for the chosen model, batch size, and number of simultaneous jobs; lower the batch size if memory runs short. Budget separately for disk: recreating the insane environment after the cache migration was reported to fetch roughly 10 GB of dependencies.Can we self-host it commercially or redistribute it in a product?
pyproject.toml declares BSD-3-Clause. Check the actual LICENSE, the distributed package, and the terms of the models and dependencies you select. Local inference does not send media to a transcription API, but URL ingestion and first-use downloads involve network access, and WhisperX diarization can require Hugging Face credentials and model access.When is this preferable to direct Whisper 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