Aratako/Irodori-TTS
Flow-matching TTS for local voice cloning and caption-guided style control
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
Irodori-TTS is a Python/PyTorch research codebase built around an Echo-TTS-style rectified-flow diffusion transformer. The shared ModernBERT encoder processes reading text and style captions, with separate projections for the two streams. A reference encoder conditions the denoiser on patched audio latents. Joint-attention DiT blocks use timestep-conditioned low-rank AdaLN, half-RoPE and SwiGLU MLPs. The duration predictor sizes the target sequence before sampling.
The denoiser generates continuous latents rather than waveforms. Released v2–v4 checkpoints use a 32-dimensional Japanese Semantic-DACVAE codec for 48 kHz reconstruction. On the training side, prepare_manifest.py encodes dataset audio into latent files and writes JSONL metadata consumed by train.py. Transformers supports the text stack, PEFT provides LoRA, and Gradio is an inference interface rather than the core runtime.
Key Capabilities & Differentiators
v4.1-Small unifies the earlier base and VoiceDesign workflows. It can synthesize without a reference, condition on a style caption alone, or combine a caption with reference speech for zero-shot voice cloning. Supported checkpoints interpret inline emoji as delivery cues. v4-Small encodes multiple references separately and concatenates their latents up to 120 seconds. It predicts output duration by default; --duration-scale adjusts the estimate and --seconds overrides it.
Adaptation ranges from joint fine-tuning of the flow model, duration predictor and shared text backbone to PEFT LoRA or Speaker Inversion. The default v4-Small LoRA configuration targets diffusion attention and saves the duration predictor with the adapter; inference can load the adapter without merging weights. Speaker Inversion freezes the base and produces a reusable embedding checkpoint tied to that same base model.
Trade-offs & Limitations
The reason to choose this over a fixed-voice engine is control over speaker identity and delivery, plus the ability to adapt the model. In exchange, you own the PyTorch and codec stack, request sizing, and serving operations. A managed TTS API avoids much of that local setup, but Irodori-TTS is the option to evaluate when control over weights, adapters or reference recordings is central. Neither streaming behavior nor production latency is established here; benchmark the complete generation path on the intended hardware and concurrency.
Treat the 120-second reference limit as a ceiling, not a recommendation. Roughly 30 seconds of clean, short clips captured most of the measured speaker-similarity improvement; an uninterrupted long recording is accepted but was not evaluated. Older v2 checkpoints can lose quality when forced away from their 30-second training target. SilentCipher watermarking depends on the required assets being available, and the MIT code license does not establish rights to the weights or source voices.
Hardware & Deployment Guide
The runtime requires Python 3.10+ and PyTorch 2.10+. The mutually exclusive uv extras select CUDA 12.8 for NVIDIA, ROCm for AMD, XPU for Intel, or the CPU route, with standard PyPI wheels for CPU/MPS on macOS. After backend setup, use uv run --no-sync to preserve the selected environment. infer.py accepts Hugging Face checkpoints or local .pt and .safetensors files. Local inference still requires the relevant model and codec assets to be available.
For interactive use, gradio_app.py covers reference cloning and Speaker Inversion, while gradio_app_voicedesign.py exposes caption conditioning. The OpenAI-compatible API is a separate project, Irodori-TTS-Server. The training path supports single-GPU fine-tuning and multi-GPU torchrun DDP with bf16. The main branch tracks v4/v4.1 and includes MeanFlow; it retains v2/v3 inference compatibility, but v1 checkpoints and preprocessing are incompatible with the newer code.
--duration-scale and --seconds for scaled or manual control.infer.py loads local or Hugging Face checkpoints, two Gradio entrypoints cover voice workflows, and the OpenAI-compatible API is a separate project.Japanese TTS research, authorized voice prototyping, and teams that need local control over reference audio, expressive delivery and model adaptation.
You need turnkey managed serving, verified streaming latency, or documented quality across languages before adoption.
Quick Start & Installation
git clone https://github.com/Aratako/Irodori-TTS.git cd Irodori-TTS uv sync --extra cu128 # NVIDIA CUDA 12.8 (Linux/Windows)
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| Irodori-TTS ★ | 1.7k | +33 | Python | MIT | Flow-matching TTS for local voice cloning and caption-guided style control |
| Amphion | 10.4k | +7 | Python | MIT | A recipe-driven PyTorch toolkit for reproducible audio generation research |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Aratako/Irodori-TTS.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about Irodori-TTS
How do I combine speaker identity and delivery style in an application?
--caption with --no-ref. To combine voice identity with a style instruction, use --caption with reference audio, precomputed reference latents, or a learned speaker embedding. The older v2 VoiceDesign checkpoint intentionally ignores speaker references. For an OpenAI-compatible service interface, use the separate Irodori-TTS-Server project.How should I size a machine for inference or fine-tuning?
Does the MIT license cover a commercial self-hosted voice product?
When is this a better fit than a fixed-voice engine or managed TTS 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