Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsApr 2, 2026·3 min de lecture

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.

Prêt pour agents

Staging sûr pour cet actif

Cet actif est d'abord staged. Le prompt copié demande à l'agent d'inspecter les fichiers staged avant d'activer scripts, config MCP ou config globale.

Stage only · 17/100Policy : staging
Surface agent
Tout agent MCP/CLI
Type
Script
Installation
Stage only
Confiance
Confiance : Established
Point d'entrée
coqui-tts.md
Commande de staging sûr
npx -y tokrepo@latest install a059dce2-6275-4ea0-a57b-e885248d8e95 --target codex

Stage les fichiers d'abord; l'activation exige la revue du README et du 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.

Questions fréquentes

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.

Sources citées (3)
🙏

Source et remerciements

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.

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires