Esta página se muestra en inglés. Una traducción al español está en curso.
ScriptsApr 2, 2026·3 min de lectura

Coqui TTS — Deep Learning Text-to-Speech Engine

Generate speech in 1100+ languages with voice cloning. XTTS v2 streams with under 200ms latency. 44K+ GitHub stars.

Listo para agents

Staging seguro para este activo

Este activo primero queda en staging. El prompt copiado pide inspeccionar los archivos staged antes de activar scripts, config MCP o config global.

Stage only · 17/100Política: staging
Superficie agent
Cualquier agent MCP/CLI
Tipo
Script
Instalación
Stage only
Confianza
Confianza: Established
Entrada
coqui-tts.md
Comando de staging seguro
npx -y tokrepo@latest install a059dce2-6275-4ea0-a57b-e885248d8e95 --target codex

Primero deja archivos en staging; la activación requiere revisar el README y el plan staged.

TL;DR
Coqui TTS generates speech in 1100+ languages with real-time voice cloning and sub-200ms streaming latency.
§01

What it is

Coqui TTS is an open-source deep learning text-to-speech engine that supports over 1100 languages. Its XTTS v2 model enables voice cloning from short audio samples with streaming output under 200ms latency. You can generate speech from text, clone voices, and fine-tune models on custom datasets.

Coqui TTS targets developers building voice interfaces, accessibility tools, content creation pipelines, and any application that needs high-quality synthesized speech without proprietary API costs.

§02

How it saves time or tokens

Coqui TTS runs locally, eliminating per-request API costs from cloud TTS services. The pre-trained models cover most languages out of the box. Voice cloning requires only a few seconds of reference audio, avoiding expensive studio recording sessions. The streaming API enables real-time voice output for interactive applications.

§03

How to use

  1. Install Coqui TTS:
pip install TTS
  1. Generate speech from the command line:
tts --text 'Hello, this is a test.' \
    --model_name tts_models/en/ljspeech/tacotron2-DDC \
    --out_path output.wav
  1. Clone a voice with XTTS:
from TTS.api import TTS

tts = TTS('tts_models/multilingual/multi-dataset/xtts_v2')
tts.tts_to_file(
    text='Hello, this is my cloned voice.',
    speaker_wav='reference_audio.wav',
    language='en',
    file_path='cloned_output.wav'
)
§04

Example

Streaming TTS for real-time applications:

from TTS.api import TTS
import sounddevice as sd
import numpy as np

tts = TTS('tts_models/multilingual/multi-dataset/xtts_v2')

wav = tts.tts(
    text='Streaming text to speech in real time.',
    speaker_wav='reference.wav',
    language='en'
)

sd.play(np.array(wav), samplerate=24000)
sd.wait()
§05

Related on TokRepo

§06

Common pitfalls

  • XTTS v2 requires a GPU for reasonable inference speed. CPU inference works but is too slow for real-time applications.
  • Voice cloning quality depends on reference audio quality. Use clean, noise-free recordings of at least 6 seconds for best results.
  • Model downloads are large (several GB). Plan for storage and bandwidth when deploying to new environments.

Preguntas frecuentes

Does Coqui TTS work offline?+

Yes. All models run locally after download. No internet connection or API key is needed for inference. This makes it suitable for on-premises and privacy-sensitive deployments.

How many languages does it support?+

Coqui TTS supports over 1100 languages through its multilingual models. XTTS v2 specifically handles 17 languages with high quality. Other models cover additional languages.

Can I fine-tune models on custom data?+

Yes. Coqui TTS provides training scripts for fine-tuning on custom datasets. You need transcribed audio data in the expected format. Fine-tuning XTTS requires a GPU with at least 16GB VRAM.

What is the license?+

Coqui TTS code is released under the Mozilla Public License 2.0. Individual model weights may have their own licenses. Check each model's license before commercial use.

How does voice cloning work?+

XTTS v2 takes a short reference audio clip (3-10 seconds) and extracts speaker characteristics. It then generates new speech in that voice from any text input. No training or fine-tuning is needed for zero-shot cloning.

Referencias (3)
🙏

Fuente y agradecimientos

Created by Coqui AI. Licensed under MPL-2.0.

TTS — ⭐ 44,900+

Thanks to the Coqui AI team and community for building the most comprehensive open-source TTS toolkit.

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados