Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

MegaTTS3

> 编程语言
Open source

Key features - Lightweight and Efficient: The backbone of the TTS Diffusion Transformer has only 0.45B parameters. - Ultra High-Quality Voi…

6.1K stars0 likes2 views
WebsiteGitHub

About

Key features - Lightweight and Efficient: The backbone of the TTS Diffusion Transformer has only 0.45B parameters. - Ultra High-Quality Voi…

Key features

  • Lightweight and Efficient: The backbone of the TTS Diffusion Transformer has only 0.45B parameters.
  • Ultra High-Quality Voice Cloning: You can try our model at Huggingface Demo. The .wav and .npy files can be found at link1. Submit a sample (.wav format, < 24s, and please do not contain space in filename) on link2 to receive .npy voice latents you can use locally.
  • Bilingual Support: Supports both Chinese and English, and code-switching.
  • ✍️Controllable: Supports accent intensity control ✅ and fine-grained pronunciation/duration adjustment (coming soon).

MegaTTS 3 Demo Video

Roadmap

  • [2025-03-22] Our project has been released!

Installation

bash
# Clone the repository
git clone https://github.com/bytedance/MegaTTS3
cd MegaTTS3

Requirements (for Linux)

bash

# Create a python 3.10 conda env (you could also use virtualenv)
conda create -n megatts3-env python=3.10
conda activate megatts3-env
pip install -r requirements.txt

# Set the root directory
export PYTHONPATH="/path/to/MegaTTS3:$PYTHONPATH"

# [Optional] Set GPU
export CUDA_VISIBLE_DEVICES=0

# If you encounter bugs with pydantic in inference, you should check if the versions of pydantic and gradio are matched.
# [Note] if you encounter bugs related with httpx, please check that whether your environmental variable "no_proxy" has patterns like "::"

Requirements (for Windows)

…

Requirements (for Docker)

…

Model Download

The pretrained checkpoint can be found at Google Drive or Huggingface. Please download them and put them to ./checkpoints/xxx.

[!IMPORTANT]
For security issues, we do not upload the parameters of WaveVAE encoder to the above links. You can only use the pre-extracted latents from link1 for inference. If you want to synthesize speech for speaker A, you need "A.wav" and "A.npy" in the same directory. If you have any questions or suggestions for our model, please email us.

This project is primarily intended for academic purposes. For academic datasets requiring evaluation, you may upload them to the voice request queue in link2 (within 24s for each clip). After verifying that your uploaded voices are free from safety issues, we will upload their latent files to link1 as soon as possible.

In the coming days, we will also prepare and release the latent representations for some common TTS benchmarks.

Inference

Command-Line Usage (Standard)

…

Command-Line Usage (for TTS with Accents)

…

Web UI Usage

bash
# We also support cpu inference, but it may take about 30 seconds (for 10 inference steps).
# Local-only by default.
python tts/gradio_api.py

# Remote exposure requires both a non-local bind address and explicit auth.
GRADIO_SERVER_NAME=0.0.0.0 GRADIO_USERNAME=admin GRADIO_PASSWORD=change_me python tts/gradio_api.py

Submodules

[!TIP] In addition to TTS, some submodules in this project may also have additional usages. See ./tts/frontend_fuction.py and ./tts/infer_cli.py for example code.

Aligner

Description: a robust speech-text aligner model trained using pseudo-labels generated by a large number of MFA expert models.

Usage: 1) Prepare the finetuning dataset for our model; 2) Filter the large-scale speech dataset (if the aligner fails to align a certain speech clip, it is likely to be noisy); 3) Phoneme recognition; 4) Speech segmentation.

Graphme-to-Phoneme Model

Description: a Qwen2.5-0.5B model finetuned for robust graphme-to-phoneme conversion.

Usage: Graphme-to-phoneme conversion.

WaveVAE

Description: a strong waveform VAE that can compress 24 kHz speeche into 25 Hz acoustic latent and reconstruct the original wave almost losslessly.

Usage: 1) Acoustic latents can provide a more compact and discriminative training target for speech synthesis models compared to mel-spectrograms, accelerating convergence; 2) Used as acoustic latents for voice conversion; 3) High-quality vocoder.

Security

If you discover a potential security issue in this project, or think you may have discovered a security issue, we ask that you notify Bytedance Security via our security center or [email protected].

Please do not create a public GitHub issue.

License

This project is licensed under the Apache-2.0 License.

Citation

This repo contains forced-align version of Sparse Alignment Enhanced Latent Diffusion Transformer for Zero-Shot Speech Synthesis and the WavVAE is mainly based on Wavtokenizer: an efficient acoustic discrete codec tokenizer for audio language modeling. Compared to the model described in paper, the repository includes additional models. These models not only enhance the stability and cloning capabilities of the algorithm but can also be independently utilized to serve a wider range of scenarios.

…

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonresearch

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言