A continuaciónSiguiente guía
Clonación de voz
IA de audio
GUÍA de IA en audio
XTTS is an open-weight text-to-speech model from Coqui that copies a speaker's voice from a few seconds of reference audio and then reads text in another language with that voice.
Escuche esta guíaNarrado por IA · ~8 min
Its 2024 paper reports results across 16 languages, and the public XTTS-v2 checkpoint lists 17, which made it a widely used research baseline for multilingual voice cloning.
XTTS is a zero-shot, multi-speaker, multilingual text-to-speech (TTS) model. Text-to-speech means turning written text into spoken audio. Zero-shot means the model can imitate a voice it never heard during training, given only a short reference recording. Cross-lingual means the reference can be in one language and the output in another, so an English speaker's voice can read Spanish or Japanese text. The model was built at Coqui, a speech startup, and described in the paper "XTTS: a Massively Multilingual Zero-Shot Text-to-Speech Model" by Edresson Casanova and colleagues, posted to arXiv on 7 June 2024. The paper covers 16 languages. The public XTTS-v2 checkpoint on Hugging Face lists 17, adding Hindi, says a 6-second clip is enough to clone a voice, and outputs 24 kHz audio.
The architecture has three parts. First, a vector-quantized variational autoencoder (VQ-VAE), a small network with 13 million parameters, compresses a mel-spectrogram (a picture of sound energy across time and pitch bands) into a stream of discrete codes at 21.53 codes per second, using one codebook of 8,192 entries that the authors pruned to the 1,024 most frequent. Second, a GPT-2 style transformer with 443 million parameters reads the input text, split into tokens by a 6,681-entry byte-pair-encoding vocabulary, and predicts those audio codes one after another. Third, a HiFi-GAN vocoder with 26 million parameters turns the transformer's internal states into a waveform.
Voice identity enters in two places. A conditioning encoder reads the reference clip's mel-spectrogram through six attention layers and a Perceiver Resampler, a module that always outputs a fixed set of 32 vectors of 1,024 numbers regardless of clip length. Those vectors steer the transformer. The paper reports that the single embedding used by the earlier Tortoise model weakened cloning once many languages were trained together, which is why the fixed set of 32 was added. The vocoder is separately conditioned on a speaker embedding from a speaker-recognition model and trained with a speaker consistency loss that rewards output sounding like the reference. Because voice comes from the conditioning path and language comes from the text, the model can mix them freely, and the authors stress that no parallel recordings of the same speaker in two languages were needed.
XTTS sits in a short lineage. Tortoise, released by James Betker in May 2023, applied autoregressive transformers and diffusion to speech and was trained on 49,000 hours of English. VALL-E, posted to arXiv in January 2023, treated TTS as language modeling over EnCodec tokens with 8 codebooks at 75 frames per second. Multilingual zero-shot systems existed but were narrow: the XTTS paper counts three languages for YourTTS, two each for VALL-E X and Mega-TTS 2, and six for Voicebox. XTTS reused the Tortoise design and scaled it to 16 languages with a 27,281.6-hour dataset. English made up 14,513.1 hours, mostly audiobook-style internal data plus LibriTTS-R and LibriLight, while most other languages came from Mozilla Common Voice. Training ran for about 2.5 million steps on four NVIDIA A100 80 GB GPUs.
The results are measured with three automatic metrics. Character error rate (CER) is computed by transcribing the output with Whisper Large v3; lower means clearer pronunciation. UTMOS is a model that predicts a human naturalness rating on a 1 to 5 scale. Speaker encoder cosine similarity (SECS) compares voice fingerprints of output and reference; 1.0 would be identical. In English, XTTS had the lowest CER in the paper's table, 0.54, against 0.68 for StyleTTS 2 and 0.77 for HierSpeech++, with UTMOS 4.01 and SECS 0.64. HierSpeech++ scored higher on naturalness (4.46) and similarity (0.65). In listening tests with at least 15 raters per comparison, listeners preferred XTTS for naturalness over HierSpeech++ (CMOS +0.41) and Mega-TTS 2 (+0.92) but rated its speaker similarity slightly lower (-0.31 and -0.39). Averaged over 16 languages, XTTS reached CER 2.06 and SECS 0.50, against 4.79 and 0.47 for a YourTTS model trained on the same data.
Compared with alternatives, XTTS trades some voice similarity for breadth. Monolingual English models such as HierSpeech++ matched voices more closely in the paper's tests, which the authors attribute to the difficulty of massive multilingual training. Against VALL-E, XTTS generates far fewer tokens per second of audio, 21.53 versus 75 frames, which the authors cite as a speed advantage. Against fine-tuning a model on one speaker, zero-shot cloning is instant but less faithful: fine-tuning on about 10 minutes of speech raised cross-lingual SECS from 0.59 to 0.72 for the authors' eight test voices.
The limitations are visible in the numbers. Error rates are much higher for some languages: CER was 5.37 for Japanese, 5.20 for Chinese and 4.06 for Korean, and those three languages are romanized before tokenization. Several languages had little data, for example 52.4 hours of Czech and 57.3 of Japanese. Cross-lingual similarity stayed around 0.46 to 0.54 SECS, well below the 0.90 measured between real recordings of the same English speakers. Output is sampled, so two runs on the same sentence differ; the paper used temperature 0.75 and a repetition penalty of 10 to keep generation stable. Reference clips with unusual recording conditions or voices far from the training data are harder to clone, as the authors note. Voice cloning also carries obvious consent and impersonation risks, and any use should involve the speaker's permission.
In practice the model is free to download but not free to use commercially. The XTTS-v2 weights are released under the Coqui Public Model License, which a maintainer of the community fork quotes as allowing only non-commercial use of the model and its outputs. The original coqui-ai/TTS repository is described by that fork, maintained under the idiap GitHub organization, as unmaintained; the fork ships as the coqui-tts package, and since version 0.27.4 PyTorch must be installed separately. By the paper's counts the three components total about 482 million parameters, and the reference audio needs only a few seconds of clean speech.
04Ejemplo resuelto
Install PyTorch, then install the maintained coqui-tts package, and accept the Coqui Public Model License for non-commercial use.
Record at least 6 seconds of clean speech from a speaker who has given permission, saved as a WAV file.
Load the model tts_models/multilingual/multi-dataset/xtts_v2 through the package's TTS Python class.
Call tts_to_file with a Spanish sentence, the reference WAV as speaker_wav, language set to es, and an output file path.
Repeat the call two or three times and compare the takes, since sampling makes each run slightly different.
Transcribe each output with a speech recognizer such as Whisper and compare the transcript with the input sentence to estimate pronunciation errors.
lo que muestra
A 24 kHz Spanish audio file in the reference speaker's voice. Check it by comparing the transcript with the input text, and by listening side by side with the reference; expect weaker similarity than an English-to-English clone, as the paper's cross-lingual SECS scores show.
The XTTS paper's own evaluation clones 20 English speakers from the DAPS dataset, using one 3 to 8 second clip each, and synthesizes the same FLORES+ sentences in all 16 supported languages.
Fine-tuning on roughly 10 minutes of a whispering English voice let the model reproduce the whispering style in all 16 languages, according to the authors' speaker-adaptation experiment.
Developers run XTTS-v2 locally through the maintained coqui-tts Python package under the model name tts_models/multilingual/multi-dataset/xtts_v2; its release notes state streaming with under 200 ms latency.
The XTTS-v2 model card lists support for multiple speaker references and blending between speakers, which lets a user combine several clips into one conditioning voice.
Researchers use XTTS as a comparison point: the authors published evaluation code and audio samples so later systems can be scored on the same character error rate and speaker-similarity metrics.
The XTTS authors named two directions in their June 2024 paper: improving the VQ-VAE so that speech can be decoded directly from its codes, removing the separate decoder, and separating speaker identity from prosody (rhythm and intonation) so that one speaker's delivery can be transferred to another voice. Both remain open research questions rather than shipped features. On the product side, the XTTS-v2 checkpoint continues to be distributed through Hugging Face, and code maintenance has moved to the idiap/coqui-ai-TTS fork, which the January 2025 GitHub discussion confirms is still updated. The license question shapes adoption: because the Coqui Public Model License restricts use to non-commercial purposes, commercial products need either a different model or a separately licensed one. The wider field faces unresolved questions about consent, disclosure and detection of cloned voices, and published evaluations with shared code, like the ones XTTS released, remain the most reliable way to compare newer systems on accuracy, similarity and language coverage.
Boletín gratuito
Tres noticias verificadas sobre IA cada mañana de lunes a viernes, explicadas con claridad. Gratis para siempre y sin anuncios.
Un correo cada día laborable. Date de baja con un clic. Nunca vendemos ni compartimos tu dirección.
Ponte a prueba
Corrección inmediata en cada respuesta y un certificado para compartir, con un ID verificable, cuando apruebas un curso.
Apoya la educación gratuita sobre IA. AI Understanding es una organización sin fines de lucro 501(c)(3): sin anuncios ni muros de pago, nunca. Hacer una donación
XTTS is an open-weight text-to-speech model from Coqui that copies a speaker's voice from a few seconds of reference audio and then reads text in another language with that voice. Its 2024 paper reports results across 16 languages, and the public XTTS-v2 checkpoint lists 17, which made it a widely used research baseline for multilingual voice cloning.
XTTS realiza clonación de voz en varios idiomas, manteniendo la identidad del hablante mientras cambia de idioma.
The XTTS paper and XTTS-v2 model card identify Coqui researchers/project materials. This identifies the project associated with the model and makes no claim about the company’s current operating status.
Zero-shot significa que XTTS clona una nueva voz a partir de un clip corto sin volver a entrenar el modelo para ese hablante.
Condiciones XTTS en la incorporación de un altavoz que captura el timbre, separado del contenido del texto.
Capacitado con datos multilingües con una representación compartida, aplica la incorporación del mismo hablante a nuevos idiomas.
sigue aprendiendo
Más guías seleccionadas para este tema.
A continuaciónSiguiente guía
Clonación de voz
IA de audio