# Repository Briefing: open-mmlab/Amphion
> Source: https://repoforai.com/repo/open-mmlab/Amphion (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/open-mmlab/Amphion
- **Official Docs / Website**: https://openhlt.github.io/amphion/
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: B (57/100 · Maintenance 6/35 · Adoption 20/25 · Releases 11/20 · License 20/20)
- **Latest Release**: v0.1.1-alpha (2024-02-23) — https://github.com/open-mmlab/Amphion/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Docker, GPU
- **Momentum**: 10,360 ★ total (+1 24h / +7 7d) · 858 forks
- **Topics**: `audio-generation`, `audio-synthesis`, `audioldm`, `audit`, `emilia`, `fastspeech2`, `maskgct`, `music-generation`, `naturalspeech2`, `singing-voice-conversion`, `speech-synthesis`, `text-to-audio`
- **When to Use**: Best for: Research and applied ML teams that need to reproduce audio generation experiments, compare vocoders or conversion models, and evaluate results on consistently prepared data. Skip if: You need a turnkey real-time voice endpoint with measured latency, established streaming and serving interfaces, or no appetite for maintaining a GPU environment.

## Overview
```text
### Architecture & Core Mechanics
Amphion is a recipe-driven Python research toolkit, not a single model or serving daemon. Task recipes in egs/ and the separate config/ directory organize experiments; models/ and modules/ hold model implementations and shared components. The tree also separates preprocessors/, processors/, and text/ from optimizer/ and schedulers/, with evaluation/ and visualization/ for inspecting results.

The practical workflow is to pick a task recipe, prepare its data, run the chosen training or inference path, and evaluate the outputs. Where a recipe uses a separate vocoder, the acoustic representation and vocoder inputs must match. The Dockerfile targets PyTorch 2.0.0 with cu118 on a CUDA 11.8/cuDNN 8 development image. The demonstrated extension surface is Python code, configuration, and recipes; no common plugin protocol or serving API is established.

### Key Capabilities & Differentiators
Supported tasks include text-to-speech, singing voice synthesis, voice conversion, accent conversion, singing voice conversion, and text-to-audio. Text-to-music is still in development. DualCodec-VALLE is trained on 12.5 Hz DualCodec tokens, while Vevo provides a recipe for voice and accent conversion. Vocoders cover several model families, including GAN-based HiFi-GAN and BigVGAN, flow-based WaveGlow, diffusion-based DiffWave, and autoregressive WaveNet and WaveRNN.

Amphion standardizes preprocessing for datasets such as LibriTTS, AudioCaps, and M4Singer, and includes Emilia-Pipe for in-the-wild speech. Evaluation covers pitch and voicing, energy, Whisper-based CER/WER, audio distances such as FAD and MCD, and speaker-embedding cosine similarity. That breadth makes evaluation choices explicit: intelligibility, acoustic distortion, and speaker similarity measure different properties. Interactive visualizations complement those metrics by exposing model internals for inspection.

### Trade-offs & Limitations
Compared with a standalone VITS or HiFi-GAN implementation, Amphion is a stronger fit when the work spans several model families or requires consistent preprocessing and evaluation. For a single fixed TTS or vocoder path, the narrower alternative is usually simpler to integrate. Compared with a managed speech API, local execution gives you control over checkpoints and evaluation, but leaves GPU provisioning, dependency pinning, and serving to your team.

Neither the GPU container nor the 12.5 Hz token rate establishes streaming behavior or a real-time latency target. Size deployments by measuring the selected checkpoint on representative audio lengths, batch sizes, and concurrency; profile training separately from inference. The repository's MIT license permits commercial use of its code, but it does not settle the terms for checkpoints, training data, third-party assets, or voice rights.

### Hardware & Deployment Guide
The local setup uses Conda with Python 3.9.15 and installs dependencies via env.sh. The documented container path uses Docker, an NVIDIA driver, and NVIDIA Container Toolkit; it pulls realamphion/amphion and launches it with --runtime=nvidia --gpus all, mounting the checkout at /app. Mount dataset directories at paths the selected recipe can access, and stage any required weights separately.

The Dockerfile uses an Ubuntu 18.04-based CUDA 11.8/cuDNN 8 development image. Before adopting it, validate host driver compatibility and run a small end-to-end job with the chosen recipe. Pin the source revision and image digest for reproducibility. The v0.1.1-alpha release dated 2024-02-23 includes a fix for an unbound download_root and adds demo badges for SVC, TTA, and TTS. The later v0.2 paper citation is not evidence of a matching GitHub release; check that the features you need are present in the revision you deploy.
```

## Key Capabilities
```text
- Experiment layout: egs/ holds task recipes, config/ holds configuration, and models/ and modules/ separate model code from reusable components.
- Codec-based TTS: DualCodec-VALLE is trained on 12.5 Hz DualCodec tokens; this token rate is not an end-to-end latency measurement.
- Vocoder coverage: GAN-based HiFi-GAN and BigVGAN, flow-based WaveGlow, diffusion-based DiffWave, and autoregressive WaveNet and WaveRNN.
- Data preparation: shared preprocessing for datasets including LibriTTS, AudioCaps, and M4Singer, plus Emilia-Pipe for in-the-wild speech.
- Evaluation and inspection: F0 and energy metrics, Whisper-based CER/WER, speaker-embedding cosine similarity, and interactive model visualization.
- GPU environment: the Dockerfile specifies CUDA 11.8, cuDNN 8, and build arguments for PyTorch 2.0.0 and cu118.
```

## Quick Start / Clone
```bash
git clone https://github.com/open-mmlab/Amphion.git
cd Amphion

docker pull realamphion/amphion
docker run --runtime=nvidia --gpus all -it -v .:/app realamphion/amphion
```
