SuperAPI AI Directory

F5-TTS

Ultra-realistic voice cloning TTS open-sourced by Shanghai Jiao Tong University and others, clones a voice in 15 seconds.

Open website

About this tool

F5-TTS is an open-source text-to-speech (TTS) project, with the official code repository on GitHub. Its paper is titled "F5-TTS: A Fairytaler that Fakes Fluent and Faithful Speech with Flow Matching", and it mainly implements a flow-matching-based Diffusion Transformer and ConvNeXt V2 architecture, aiming to provide a TTS solution with faster training and inference. The project also includes E2 TTS (Flat-UNet Transformer, a close reproduction of the paper) and an inference-time flow-step sampling strategy called Sway Sampling, which is said to greatly improve performance.

In terms of features, F5-TTS currently supports basic TTS (with chunked inference), multi-style/multi-speaker generation, voice chat powered by Qwen2.5-3B-Instruct, and custom inference supporting more languages. Users can perform inference through the command line (CLI), including using Hugging Face Accelerate or a Gradio app. The project also provides guides for training and fine-tuning.

In terms of usage, users can choose an installation method according to their needs: if only for inference, it can be installed as a pip package; if training and fine-tuning are needed, a local editable installation can be used. It also supports Docker deployment and provides deployment solutions based on Triton and TensorRT-LLM. Before installation, a separate environment needs to be created, and PyTorch matching the device must be installed. Note that RDNA 3.5 and RDNA 4 GPUs (such as Radeon 8050S/8060S, RX 9060/9070 series) require ROCm 7.x, because these architectures (gfx1151/gfx1201) are not included in ROCm 6.x, and using ROCm 6.x will cause HIP errors.

The project update records show that on March 12, 2025, the F5-TTS v1 base model was released, with better training and inference performance; on October 8, 2024, the F5-TTS and E2 TTS base models were released and are available on Hugging Face, Model Scope, and Wisemodel. The project thanks E2-TTS, datasets such as Emilia, lucidrains's CFM structure, the DiT and MMDiT code structures of SD3 and Hugging Face diffusers, tools such as torchdiffeq, Vocos, BigVGAN, FunASR, and faster-whisper, as well as multiple community implementations (such as the MLX version, ONNX version, Triton, and TensorRT-LLM support).

Regarding licensing, the code uses the MIT license, but the pretrained models use the CC-BY-NC license due to the training data Emilia (an in-the-wild dataset). The project encourages users to read the detailed guide for optimal performance and to consult issues by searching keywords to solve problems. Before submitting a PR, pre-commit must be run to ensure code quality.