# Coqui XTTS-v2 — card for AI agents

Zero-shot voice-cloning TTS model; weights under the non-commercial Coqui Public Model License.

Category: Voiceover (text-to-speech) · maker Coqui (community fork by idiap) · checked 2026-10-19

## Price
- Price: Free
- Free tier: Self-hosted.

## License
Coqui Public Model License (CPML); code MPL-2.0 — https://huggingface.co/coqui/XTTS-v2/raw/main/LICENSE.txt

- commercial: **no** (Non-commercial only)
  > This license allows only non-commercial use of a machine learning model and its outputs.
  (https://huggingface.co/coqui/XTTS-v2/raw/main/LICENSE.txt)
- in app: **no** (Cannot ship inside an app)
  > Use for revenue-generating activity, including projects directly funded by government grants, is not a non-commercial purpose.
  (https://huggingface.co/coqui/XTTS-v2/raw/main/LICENSE.txt)
- youtube: **no** (Not for monetized YouTube)
  > but only so far as you do not receive any direct or indirect payment arising from the use of the model or its output.
  (https://huggingface.co/coqui/XTTS-v2/raw/main/LICENSE.txt)

## Rules to follow
- Do not use XTTS-v2 or its outputs commercially; the CPML allows only non-commercial use.

## Can an AI agent use it by itself?
**No** · package: Agent installs a package or loads it from a CDN

## How an agent gets 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. (sign-in: none)
- Formats: 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.

## How to connect
- Package (npm/PyPI)
- API docs: https://github.com/idiap/coqui-ai-TTS
- PyPI: `pip install coqui-tts`
- Repository: https://github.com/idiap/coqui-ai-TTS
- Website: https://huggingface.co/coqui/XTTS-v2

## Notes
No commercial license is available to buy. The original repo was last pushed 2024-08; the idiap fork in 2026-10.

## Numbers (AgentGid data)
- Gid Score: 33
- GitHub stars: 2,356
- Downloads last week: 36,819

## Lines to paste 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/)
```

Not verified: Coqui company status not verified.

## Links
- AgentGid page: https://agentgid.com/assets/coqui-xtts/
- Is it free for commercial use? https://agentgid.com/assets/coqui-xtts/commercial-use/
- Source: https://huggingface.co/coqui/XTTS-v2/raw/main/LICENSE.txt
- Source: https://github.com/coqui-ai/TTS
- Source: https://github.com/idiap/coqui-ai-TTS


## 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 to 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: Turn saved articles or your own notes into audio in a familiar voice, for listening on a walk. (idea, not from the official pages)

### How to start
- 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)
```

- Pass a short clean recording of the voice as speaker_wav, plus the text and language.

### License
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.

### Good to know
- No paid use: a monetized channel, a client job, a paid app or a grant-funded project all count as commercial.
- The original Coqui project is no longer maintained; updates come from a community fork published as coqui-tts.
- The model file is about 1.9 GB and runs best on a graphics card; the docs' examples load it onto one.
- The license link on the model page (coqui.ai/cpml) no longer opens; the same text is in the model's LICENSE.txt and on a mirror the fork links to.
- Using its voices to train other models for commercial use is not allowed.

Checked 2026-11-10 against: https://huggingface.co/coqui/XTTS-v2, https://huggingface.co/coqui/XTTS-v2/raw/main/README.md, https://huggingface.co/coqui/XTTS-v2/raw/main/LICENSE.txt, https://huggingface.co/api/models/coqui/XTTS-v2, https://huggingface.co/api/models/coqui/XTTS-v2/tree/main, https://raw.githubusercontent.com/idiap/coqui-ai-TTS/main/README.md, https://raw.githubusercontent.com/idiap/coqui-ai-TTS/main/docs/source/models/xtts.md, https://raw.githubusercontent.com/idiap/coqui-ai-TTS/main/TTS/utils/manage.py, https://pypi.org/pypi/coqui-tts/json, https://tts-hub.github.io/cpml/, https://coqui.ai/cpml

### Mistakes to avoid
- Don't: pip install TTS (the original package) → Do: uv pip install coqui-tts after installing PyTorch (The original project is unmaintained; the fork publishes the current package.)
- Don't: Setting COQUI_TOS_AGREED=1 in a script on the person's behalf → Do: Let the person read the CPML and answer the first-run prompt themselves (The download asks the user to agree to the non-commercial license; the variable skips that question.)
- Don't: Installing coqui-tts and expecting PyTorch to come with it → Do: Install torch and torchaudio for your CPU or GPU first (Recent versions no longer include PyTorch.)
- Don't: Passing both speaker and speaker_wav to a model that takes only one → Do: For XTTS use speaker_wav to clone, or speaker for a preset voice (The docs warn many models allow only one of the two.)
- Don't: Using XTTS-v2 for a paid client voiceover → Do: Pick a model whose license allows commercial use, such as Chatterbox (Both the model and its output are non-commercial only.)

### 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.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
