MegaTTS3 is a text-to-speech (TTS) open-source project released by ByteDance, providing an official PyTorch implementation, with the code hosted on GitHub. The project is positioned as a speech synthesis system that is lightweight, efficient, and capable of ultra-high-quality voice cloning.
In terms of use, MegaTTS3 is mainly used for text-to-speech synthesis and supports zero-shot voice cloning. Its TTS diffusion Transformer backbone has only 0.45B parameters, pursuing high-quality output while remaining lightweight. The project supports Chinese and English, and supports Chinese-English mixed (code-switching) synthesis. In addition, the model has a certain degree of controllability, supporting accent intensity control, while fine-grained pronunciation/duration adjustment functionality is marked as "coming soon."
Main capabilities include: a lightweight and efficient diffusion Transformer backbone; ultra-high-quality voice cloning; Chinese-English bilingual and mixed support; accent intensity control. The project also includes several submodules that can be used independently: a robust speech-text aligner, which can be used to prepare fine-tuning datasets, filter large-scale speech datasets, phoneme recognition, and speech segmentation; a grapheme-to-phoneme conversion model fine-tuned based on Qwen2.5-0.5B; and a waveform VAE (WaveVAE), which can compress 24kHz speech into 25Hz acoustic latent variables and reconstruct it nearly losslessly, and can be used as acoustic latent variables, an acoustic representation for voice conversion, or a high-quality vocoder.
In terms of usage, the project provides environment requirement instructions for Linux, Windows, and Docker. Pretrained checkpoints can be downloaded from Google Drive or Hugging Face and need to be placed in the ./checkpoints/xxx directory. For security reasons, the WaveVAE encoder parameters have not been uploaded to the above links, and users can only use pre-extracted latent variables for inference. If you want to synthesize speech for speaker A, you need to place A.wav and A.npy in the same directory. Users can try the model in the Hugging Face Demo, and the .wav and .npy files can be obtained at the specified link; they can also submit samples (.wav format, less than 24 seconds, file name without spaces) to obtain .npy acoustic latent variables that can be used locally. The project provides standard command-line usage and accented TTS command-line usage. For example code for the submodules, refer to ./tts/frontend_fuction.py and ./tts/infer_cli.py.
In terms of applicable scenarios, the project is mainly intended for academic use. For academic datasets that need to be evaluated, each segment (within 24 seconds) can be uploaded to the speech request queue. After security verification, its latent variable file will be uploaded to the specified link as soon as possible. The project also plans to release latent variable representations for some common TTS benchmarks.
In terms of limitations, the WaveVAE encoder parameters are not publicly disclosed, so the encoder cannot be directly used for inference; voice cloning requires obtaining .npy latent variables in advance; the fine-grained pronunciation/duration adjustment functionality has not yet been released; the project is mainly intended for academic use. The project is licensed under Apache-2.0. If security issues are found, they should be reported through the ByteDance Security Center or sec@bytedance.com, and do not create a public GitHub issue.