M5-TTS

English | 简体中文

GitHub · Demo · Space · Models

M5-TTS is a compact multilingual and multi-dialect text-to-speech system from ASLP@NPU and LycheeAI Lab. It combines a 30M temporal backbone with a 20M local multi-token prediction decoder, using 16 audio codebooks at 12.5 frames/s for 24 kHz speech generation. The speech codec is separate.

Supported languages and dialects: Mandarin Chinese · English · German · French · Japanese · Korean · Cantonese · Sichuanese.

This repository provides the reference-based voice-cloning checkpoint. It supports Chinese, English, German, French, Japanese and Korean, with Cantonese and Sichuan dialect conditioning. For preset-speaker synthesis without reference audio, use M5-TTS-50M-CustomVoice.

Quickstart

Use Python 3.10 on Linux with a BF16-capable NVIDIA GPU and a compatible CUDA driver. Install from the code repository:

git clone https://github.com/ASLP-lab/M5-TTS.git
cd M5-TTS
conda create -n m5tts python=3.10 -y
conda activate m5tts
pip install -r requirements.txt
pip install --no-build-isolation flash-attn==2.7.3

Run from the repository root:

python infer_clone.py \
  --model ASLP-lab/M5-TTS \
  --text "你好,欢迎使用我们的语音合成模型。" \
  --prompt-wav assets/aslp_default_voice.wav \
  --prompt-text "猪携带该疾病,然后通过蚊子传染给人类。" \
  --output outputs/clone.wav

Replace the reference recording and its transcript together to clone another voice. The M5 checkpoint, text tokenizer and audio tokenizer are downloaded automatically. Use --lang for the target language; Cantonese uses --lang Chinese --accent yue, and Sichuan uses --lang Chinese --accent chuan.

For full usage and evaluation results, see the project README. Only clone voices you own or have permission to use.

License

Apache-2.0. The Qwen-derived audio codec retains its upstream attribution; see the third-party notice.

Downloads last month
77
Safetensors
Model size
0.1B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including ASLP-lab/M5-TTS