R3gm/SoniTranslate
Gradio dubbing pipeline for synchronized video translation and multi-speaker audio
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
SoniTranslate is a Python application for offline-in-time media dubbing, not live interpretation. app_rvc.py launches the Gradio UI. FFmpeg handles media processing, and yt-dlp provides URL ingestion. WhisperX transcribes speech and aligns it to timestamps; pyannote assigns speaker labels to time spans. Translated segments can then be edited before synthesis, and the dubbed speech is placed back on the media timeline for export.
The manifests include PyTorch CUDA wheels, ONNX Runtime GPU, deep_translator, edge_tts, and gTTS; the project also offers optional Piper and XTTS installs. The integration points exposed to users are stage-specific: enter a Hugging Face model ID for Whisper ASR, select voice backends, or configure optional OpenAI transcription, translation, and TTS. The concrete launch interface is Gradio; don't assume a stable headless API or distributed worker contract.
Key Capabilities & Differentiators
Version 0.5.0 adds overlap reduction and pre-transcription vocal enhancement, useful controls when speakers talk over one another or the speech is hard to hear. TTS supports up to 12 speakers. Operators can edit translated subtitles before synthesis and adjust voice speed and volume. Language coverage varies by stage: English and Simplified and Traditional Chinese are listed for translation, while Aymara and Kurdish are listed without native transcription support. Check the source and target languages against the stages you actually need.
The app supports ASS subtitles and batch processing with subtitles, with outputs that include dubbed video, subtitles split by speaker, separate audio, and video with subtitles but no dub. RVC support was introduced in 0.4.0, and 0.5.0 integrates OpenVoiceV2 for voice imitation. The PDF-to-videobook path also displays the PDF's page images.
Trade-offs & Limitations
Compared with running WhisperX on its own, SoniTranslate brings translation, subtitle correction, multi-speaker synthesis, and timed rendering into one operator workflow. The trade-off is a larger dependency graph: FFmpeg and model libraries are joined by optional voice stacks, and requirements.txt includes direct Git dependencies such as WhisperX and fairseq. Pin the revision and dependency set you validate instead of assuming that all install paths resolve identically.
Compared with a managed dubbing workflow, self-hosting gives you more control over model choice and deliverables, but puts runtime compatibility, GPU sizing, and credential handling on your team. Memory and processing time depend on chosen models, media length, and job concurrency; CPU mode is a fallback, not a throughput guarantee. External backends can add network, data-handling, and cost considerations. Apache-2.0 covers the repository code, not all model terms, API terms, or permissions to imitate a voice.
Hardware & Deployment Guide
The local setup uses a Conda environment with Python 3.10 and specifies PyTorch 2.5.1, torchvision 0.20.1, torchaudio 2.5.1, and CUDA 11.8 on a compatible NVIDIA host. Install requirements_base.txt, requirements_extra.txt, and onnxruntime-gpu, and put FFmpeg on PATH. For gated pyannote models, accept the Hugging Face access terms and set YOUR_HF_TOKEN. Set OPENAI_API_KEY only if you intend to use the OpenAI-backed stages.
Launch with python app_rvc.py and open http://127.0.0.1:7860. Colab is an alternative for evaluation. Version 0.5.0 (May 18, 2024) adds --cpu_mode and expands export options. Keep the UI local by default for sensitive media: --public_url enables a public link. Self-hosting does not make the pipeline offline; for an offline deployment, provision required model assets in advance and verify that every selected stage runs without a network connection.
--cpu_mode, and a Colab notebook for evaluation.Localization teams and creators dubbing recorded training, interviews, or educational videos who want to review translated subtitles, assign voices by speaker, and export editable assets alongside the finished video.
You need live interpretation, a turnkey managed service, or an offline deployment without time to stage and validate every backend. If you only need an aligned transcript, use a dedicated ASR tool.
Quick Start & Installation
pip install -r requirements_base.txt -v pip install -r requirements_extra.txt -v pip install onnxruntime-gpu
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| SoniTranslate ★ | 1.4k | +1 | Python | Apache-2.0 | Gradio dubbing pipeline for synchronized video translation and multi-speaker aud |
| voice-pro | 13.5k | +34 | Python | GPL-3.0 | Self-hosted Gradio studio for transcription, translation, and dubbing |
| speech-to-speech | 13.9k | +137 | Python | Apache-2.0 | A modular speech cascade for self-hosted voice agents over OpenAI Realtime |
| 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/R3gm/SoniTranslate.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about SoniTranslate
How should I integrate SoniTranslate into an existing workflow?
python app_rvc.py, which launches a local Gradio UI. Use exported subtitles, dubbed audio, or rendered video as handoff artifacts. If you need a headless integration, validate that separately rather than assuming a stable service API or worker contract.How much GPU memory do I need, and can I run without a GPU?
--cpu_mode is available, but no fixed VRAM floor or CPU throughput is established.Does Apache-2.0 cover commercial self-hosting and every model or service?
When should I use SoniTranslate instead of WhisperX alone or a managed dubbing service?
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