F5-TTS
by SWivid (SJTU et al.)
Zero-shot voice-cloning TTS; code MIT, pre-trained weights CC BY-NC.
Voiceover (text-to-speech) Code libraryOpen source
1. Price: github.com/SWivid/F5-TTS
Self-hosted.
github.com/SWivid/F5-TTSNo quote yet: price is read from the official pages.
2. Commercial use: github.com/SWivid/F5-TTS
“Our code is released under MIT License. The pre-trained models are licensed under the CC-BY-NC license due to the training data Emilia”
The MIT code may be used commercially; the official models are CC BY-NC and may not.
github.com/SWivid/F5-TTS3. Credit the author: huggingface.co/SWivid/F5-TTS
“license: cc-by-nc-4.0”
Voice generated with F5-TTS (code MIT; model CC BY-NC 4.0)
huggingface.co/SWivid/F5-TTS4. Agent access: github.com/SWivid/F5-TTS
An agent can install it by itself with pip install f5-tts.
github.com/SWivid/F5-TTSLicense checked Nov 10, 2026 against 2 official pages. Tap a verdict to see its source. How we checked Report an error
F5-TTS: speech in any voice from a short sample
F5-TTS is a free voice model you run on your own computer. You give it a short recording of a voice and its words, and it reads any new text in that voice, in English and Chinese with the official model. The code may be used in paid work, but the official trained model is for non-commercial use only.
Where you can use it
Narration in a chosen voice
Read a script in the voice of a short sample you have the right to use, such as your own voice, for a lesson or a personal video.
A story with several voices
Voice a short story or dialogue where each character has its own sample, switching voices with tags in the text.
Speech from your Python code
Call the model from a Python script or backend to produce voice files for each new text, such as personal audio notes.
A simple voice web page
Start a local web page where you upload a sample, type text and listen, without writing code.
Voices in more languages
Use or train a model for another language; the project lists community models for French, German, Hindi, Russian and more, each with its own license.
Spoken replies in a hobby assistant
Stream the voice in short pieces so a personal, non-commercial assistant can answer out loud.
As reported by SWivid (SJTU et al.): Real-time factor of 0.15 at inference; Trained on a public 100K hours multilingual dataset.
F5-TTS popularity
Downloads from pypistats.org, stars from GitHub, checked Nov 26, 2026. How the Gid Score is calculated
How to start
Tell your AI assistant
“For a non-commercial project, install f5-tts 1.1.22 in a Python 3.11 virtual environment, and read my text with F5TTS_v1_Base using my reference clip (under 12 seconds, with its transcript); save WAV files.”
Or install it yourself. Make a Python 3.10+ environment, install FFmpeg and a PyTorch build for your device (NVIDIA, AMD, Intel or Apple Silicon), then install the package.
pip install f5-tts
Show codeStep 1 or Step 2
Try it in the browser first.
f5-tts_infer-gradio
Or run one line from the command line with a sample clip and its transcript.
f5-tts_infer-cli --model F5TTS_v1_Base \
--ref_audio "provide_prompt_wav_path_here.wav" \
--ref_text "The content, subtitle or transcription of reference audio." \
--gen_text "Some text you want TTS model generate for you."
Mistakes to avoid
Only the code is MIT; the official models are CC BY-NC.
Long references are clipped to about 12 seconds and may cut a word in the middle.
An empty ref_text loads a speech recognition model and uses extra graphics memory.
Without the space the text is not split into chunks there.
The share flag creates a public link to the app and the voices you upload.
License
Code MIT; weights CC-BY-NC-4.0 license. The code is MIT, so it is free for any use. The official trained models are CC BY-NC, so speech made with them is for non-commercial use only.
“Our code is released under MIT License. The pre-trained models are licensed under the CC-BY-NC license due to the training data Emilia” github.com/SWivid/F5-TTS
“license: cc-by-nc-4.0” huggingface.co/SWivid/F5-TTS
“The pre-trained models are licensed under the CC-BY-NC license due to the training data Emilia, which is an in-the-wild dataset.” github.com/SWivid/F5-TTS
Code under MIT with its notice; model files only non-commercially and under their CC BY-NC terms.
“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.” LICENSE on GitHub
“The pre-trained models are licensed under the CC-BY-NC license due to the training data Emilia, which is an in-the-wild dataset.” github.com/SWivid/F5-TTS
AllowedWith conditionsNot allowedNot stated or not checked yet
Is F5-TTS free for commercial use? The full answer Not legal advice. Check the license page before you ship.
For your agent
License rules tell your agent what it may do with F5-TTS. Paste them into your prompt or AGENTS.md.
- F5-TTS (Voiceover (text-to-speech)). Zero-shot voice-cloning TTS; code MIT, pre-trained weights CC BY-NC. Price: free; commercial use with conditions; credit required; ship inside your app with conditions.
Connect: PyPI f5-tts.
Get files: pip install f5-tts; run f5-tts_infer-cli --model F5TTS_v1_Base --ref_audio <wav> --ref_text <text> --gen_text <text>. Weights on Hugging Face (SWivid/F5-TTS).
Not allowed: Pre-trained models are CC-BY-NC: non-commercial use only.
Not allowed: Code is MIT.
Rule: Do not use the official pre-trained weights commercially.
License: https://github.com/SWivid/F5-TTS (checked 2026-11-10; details: https://agentgid.com/assets/f5-tts/)
Agent installs a package or loads it from a CDN.
pip install f5-ttsVoice generated with F5-TTS (code MIT; model CC BY-NC 4.0)Alternatives
F5-TTS This page
Pick Chatterbox when you need voice cloning for a paid product, since it is MIT licensed and covers 23 languages.
Pick Qwen3-TTS for 10 languages, preset voices and voice design from a text description as well as cloning.
Pick VoiceStudio when you want a desktop app for cloning, dubbing and transcription instead of command-line tools.
Long-form multi-speaker TTS for podcast-style dialogue, up to 90 minutes and 4 speakers, in English and Chinese.
Open-source PyTorch toolkit for building and deploying speech recognition, text-to-speech and speech LLM models, with pretrained checkpoints
Questions
Can I use F5-TTS voices in a paid product or a monetised video?
Not with the official models. The code is MIT, but those models are CC BY-NC, which rules out commercial use.
How long should my voice sample be?
Under 12 seconds, with about one second of silence at the end; longer clips are cut.
Do I have to type what the sample says?
It is better to. If you leave it empty, a speech recognition model writes it for you and uses extra graphics memory.
Is there a version without the command line?
Yes. f5-tts_infer-gradio starts a local web page for the same tasks.