Coqui XTTS-v2
by Coqui (community fork by idiap)
Zero-shot voice-cloning TTS model; weights under the non-commercial Coqui Public Model License.
Voiceover (text-to-speech) Code libraryOpen source
1. Price: huggingface.co/coqui/XTTS-v2
Self-hosted.
huggingface.co/coqui/XTTS-v2No quote yet: price is read from the official pages.
2. Commercial use: huggingface.co
“This license allows only non-commercial use of a machine learning model and its outputs.”
The model and its outputs may be used only for non-commercial purposes.
huggingface.co3. Credit the author: huggingface.co
huggingface.co4. Agent access: github.com/idiap/coqui-ai-TTS
An agent can install it by itself with pip install coqui-tts.
github.com/idiap/coqui-ai-TTSLicense checked Oct 19, 2026 against 1 official page. Tap a verdict to see its source. How we checked Report an error
Coqui XTTS-v2: voice cloning for non-commercial projects
XTTS-v2 is a free speech model that reads text aloud in a voice copied from a few seconds of a recording, in 17 languages. It runs on your own computer, best with a graphics card. Its license allows only non-commercial use, and that includes the audio it makes.
Where you can use it
Voiceover for a hobby video
Read the script of a personal, unpaid video in your own voice after recording a short sample once.
Same voice in another language
Hear how your own voice would sound speaking Spanish, Japanese or Turkish, for a language-learning hobby project.
Voice reply in a research prototype
A test voice assistant or a lab demo speaks its answers back quickly, starting before the whole sentence is ready.
Trying it out before choosing a voice
A company may test and compare it against other voices before buying or building something else for its product.
Reading articles aloud for yourself Idea
Turn saved articles or your own notes into audio in a familiar voice, for listening on a walk.
As reported by Coqui (community fork by idiap): Voice cloning from a 6-second audio clip; The fork's docs say a 3-second clip is enough; 24 kHz audio output; Streaming with under 200 ms latency.
Coqui XTTS-v2 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
“Set up coqui-tts 0.28.0 in a uv venv for a personal, non-commercial project; I will accept the CPML myself on first run. Clone my voice from me.wav and read script.txt in English to voiceover.wav.”
Show codeStep 1 or Step 2
Install PyTorch for your machine first, then the maintained package coqui-tts (the original project is unmaintained).
uv pip install torch torchaudio torchcodec --torch-backend=auto
uv pip install coqui-tts
Load XTTS-v2 by name; the first run downloads the model and asks you to accept the non-commercial license.
from TTS.api import TTS
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)
Mistakes to avoid
pip install TTS (the original package)The original project is unmaintained; the fork publishes the current package.
The download asks the user to agree to the non-commercial license; the variable skips that question.
Recent versions no longer include PyTorch.
The docs warn many models allow only one of the two.
Both the model and its output are non-commercial only.
License
Coqui Public Model License (CPML); code MPL-2.0. Only non-commercial use is allowed, for the model and for the audio it makes, and no payment of any kind may come from it. Anyone you give the model or its audio to must also get the license terms.
“This license allows only non-commercial use of a machine learning model and its outputs.” huggingface.co
“Use for revenue-generating activity, including projects directly funded by government grants, is not a non-commercial purpose.” huggingface.co
Sharing the model or its audio is allowed for non-commercial use, with the license terms or their link attached.
“You must ensure that anyone who gets a copy of any part of the model, or any modification of the model, or their output, from you also gets a copy of these terms or the URL for them above.” huggingface.co
“but only so far as you do not receive any direct or indirect payment arising from the use of the model or its output.” huggingface.co
AllowedWith conditionsNot allowedNot stated or not checked yet
Is Coqui XTTS-v2 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 Coqui XTTS-v2. Paste them into your prompt or AGENTS.md.
- Coqui XTTS-v2 (Voiceover (text-to-speech)). Zero-shot voice-cloning TTS model; weights under the non-commercial Coqui Public Model License. Price: free; non-commercial only; cannot ship inside an app.
Connect: PyPI coqui-tts.
Get files: uv pip install coqui-tts (idiap fork); load TTS("tts_models/multilingual/multi-dataset/xtts_v2") and call tts_to_file with speaker_wav for cloning (wav).
Not allowed: Coqui Public Model License: non-commercial use only, including outputs.
Not allowed: No direct or indirect payment may arise from using the model or its output.
Not allowed: The idiap fork code is MPL-2.0; the XTTS-v2 weights keep the CPML.
Rule: Do not use XTTS-v2 or its outputs commercially; the CPML allows only non-commercial use.
License: https://huggingface.co/coqui/XTTS-v2/raw/main/LICENSE.txt (checked 2026-10-19; details: https://agentgid.com/assets/coqui-xtts/)
Agent installs a package or loads it from a CDN.
pip install coqui-ttsFormats: wav
Voice: Coqui XTTS-v2, Coqui Public Model License 1.0.0 (non-commercial), https://tts-hub.github.io/cpml/Alternatives
Coqui XTTS-v2 This page
Pick Chatterbox when you need voice cloning in a paid product; it is MIT-licensed and adds a watermark.
Pick Piper for a small, fast local voice on modest hardware, checking each voice's own license.
Pick F5-TTS to compare another cloning model; its released weights are also non-commercial.
Local desktop app for voice cloning, voice design, video dubbing, dictation and transcription in 646 languages, with a local API and an MCP server for agents.
Long-form multi-speaker TTS for podcast-style dialogue, up to 90 minutes and 4 speakers, in English and Chinese.
Questions
Can I use XTTS-v2 voices in a monetized YouTube video?
No. The license allows only uses that bring no direct or indirect payment, and that covers the audio it makes.
Can my company try it?
Yes, for testing, evaluation or non-commercial research; not inside a product that earns money.
Which languages does it speak?
Seventeen, including English, Spanish, French, German, Russian, Chinese, Japanese, Korean, Arabic and Hindi.
Which package should I install?
coqui-tts, the maintained fork, with PyTorch installed first.