Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

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

GitHub repo

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-TTS

License 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

46 / 100
Gid Score, same scale as developer tools
15,665
GitHub stars
35.7K
PyPI downloads, last 7 days
+73.7% in 4 weeks
F5-TTS: downloads per weekPyPI, f5-tts 36,450
F5-TTS: GitHub starsSWivid/F5-TTS 15,665

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

Mistakes to avoid

Using the official F5TTS_v1_Base output in a paid app, an ad or a monetised channel
Keep official-model output non-commercial, or use a checkpoint whose own license allows commercial use

Only the code is MIT; the official models are CC BY-NC.

Passing a 30-second reference clip
Trim it to under 12 seconds and leave about 1 second of silence at the end

Long references are clipped to about 12 seconds and may cut a word in the middle.

--ref_text "" on a small graphics card
Pass the exact transcript of the reference clip

An empty ref_text loads a speech recognition model and uses extra graphics memory.

Writing "Hello.World." without a space after the period
Put a space after each sentence-ending English punctuation mark

Without the space the text is not split into chunks there.

f5-tts_infer-gradio --share on a machine with private samples
Run it locally without --share, or behind your own login

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.

Commercial use
With conditions

“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

Credit
Required

“license: cc-by-nc-4.0” huggingface.co/SWivid/F5-TTS

Inside your app or game
With conditions

“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

Pass the files on to your users
With conditions

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

Monetized YouTube
Not stated

“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

AI training
Not stated
Bots and bulk downloads
Not stated

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.

License rules
- 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/)
Can an agent use it by itself?
Yes.

Agent installs a package or loads it from a CDN.

Install
pip install f5-tts
How an agent gets 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).
Repository
API, key or account
Not needed. Everything runs on your side.
MCP server
None found
Credit line, if you want one
Voice generated with F5-TTS (code MIT; model CC BY-NC 4.0)
This card for machines

Alternatives

F5-TTS This page

Free With conditions PyPI

Chatterbox

Pick Chatterbox when you need voice cloning for a paid product, since it is MIT licensed and covers 23 languages.

Free Commercial OK PyPI

Qwen3-TTS

Pick Qwen3-TTS for 10 languages, preset voices and voice design from a text description as well as cloning.

Free Commercial OK PyPI

VoiceStudio

Pick VoiceStudio when you want a desktop app for cloning, dubbing and transcription instead of command-line tools.

Free With conditions MCP, API

VibeVoice

Long-form multi-speaker TTS for podcast-style dialogue, up to 90 minutes and 4 speakers, in English and Chinese.

Free With conditions Download

NVIDIA NeMo Speech

Open-source PyTorch toolkit for building and deploying speech recognition, text-to-speech and speech LLM models, with pretrained checkpoints

Free Commercial OK PyPI

All voiceover (text-to-speech)

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.

AgentGid articles about F5-TTS

All guides