RepositoryPython
SWivid

SWivid/F5-TTS

Official code for "F5-TTS: A Fairytaler that Fakes Fluent and Faithful Speech with Flow Matching"

15.7kstars
2.3kforks
50issues
1views

🎙️ Flow Matching for Fluent, Faithful Speech

A fairytaler that fakes fluent and faithful speech with flow matching.

F5-TTS is the official code for "F5-TTS: A Fairytaler that Fakes Fluent and Faithful Speech with Flow Matching". Built around flow matching, it provides reference implementations for prompt-based speech synthesis with a focus on keeping the generated speech faithful to the given voice and natural in delivery.

✨ Highlights

  • F5-TTS: Diffusion Transformer with ConvNeXt V2, faster for both training and inference.
  • E2 TTS: Flat-UNet Transformer, closest reproduction from the E2 TTS paper.
  • Sway Sampling: Inference-time flow step sampling strategy that greatly improves performance.
  • Pretrained weights: Base models released on Hugging Face, ModelScope and Wisemodel.
  • Flexible install paths: Pip package for inference, or local editable install for training and finetuning.
  • Optimized runtime: Deployment path with Triton and TensorRT-LLM, with benchmark data for offline and client-server modes.

💡 Why it matters

F5-TTS puts flow matching front and center for TTS instead of treating it as an add-on. With Sway Sampling at inference time and a concrete path to Triton + TensorRT-LLM, the project doesn't just ship model code, but also shows a way to run it with lower latency in practice.


#TTS #FlowMatching #DiffusionTransformer #TextToSpeech #TiniX