GUIDE de l'IA audio

Clonage vocal multilingue XTTS

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.

Écoutez ce guideNarré par l'IA · ~8 min

Sur cette page9 minutes de lecture
  1. Aperçu
  2. Points clés à retenir
  3. Plongée profonde
  4. Cloning an English voice into Spanish with XTTS-v2
  5. Mise en œuvre dans le monde réel
  6. L'avenir du clonage vocal multilingue XTTS
  7. Le mettre en pratique
  8. Sources et lectures complémentaires
  9. Continuez à explorer
  10. Questions fréquemment posées

Aperçu

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.

Points clés à retenir

  1. XTTS clones a voice from a short reference clip and speaks text in a different language with that voice.
  2. The XTTS paper covers 16 languages, and the public XTTS-v2 checkpoint lists 17 including Hindi.
  3. XTTS combines a 13M-parameter VQ-VAE, a 443M-parameter GPT-2 style transformer and a 26M-parameter HiFi-GAN vocoder.
  4. XTTS was trained on 27,281.6 hours of speech, more than half of it English.
  5. In the paper's English tests XTTS had the lowest character error rate but slightly lower speaker similarity than HierSpeech++.
  6. XTTS-v2 weights use the Coqui Public Model License, which allows only non-commercial use of the model and its outputs.

Plongée profonde

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.

04Exemple travaillé

Cloning an English voice into Spanish with XTTS-v2

  1. Install PyTorch, then install the maintained coqui-tts package, and accept the Coqui Public Model License for non-commercial use.

  2. Record at least 6 seconds of clean speech from a speaker who has given permission, saved as a WAV file.

  3. Load the model tts_models/multilingual/multi-dataset/xtts_v2 through the package's TTS Python class.

  4. Call tts_to_file with a Spanish sentence, the reference WAV as speaker_wav, language set to es, and an output file path.

  5. Repeat the call two or three times and compare the takes, since sampling makes each run slightly different.

  6. Transcribe each output with a speech recognizer such as Whisper and compare the transcript with the input sentence to estimate pronunciation errors.

Ce que ça montre

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.

Mise en œuvre dans le monde réel

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.

L'avenir du clonage vocal multilingue XTTS

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.

Le mettre en pratique

Pourquoi c'est important

  • Accès et portée. Il améliore l'accessibilité grâce à la transcription, à la narration et aux interfaces vocales.
  • Coût et budget. Les équipes médias peuvent produire un son de qualité plus rapidement avec des budgets plus réduits.
  • Vitesse et échelle. Les systèmes orientés client peuvent traiter les interactions orales à plus grande échelle.

Attention à

  • Les risques d’utilisation abusive de la voix et d’usurpation d’identité augmentent lorsque le consentement fait défaut.
  • La précision peut chuter en fonction des accents, des dialectes ou des environnements bruyants.
  • L’audio synthétique peut être confondu avec une parole authentique sans étiquetage clair.

Prochaines étapes

  1. Obtenez un consentement explicite pour la capture vocale, le clonage et la réutilisation.
  2. Testez la qualité sur divers locuteurs et conditions d’arrière-plan.
  3. Définissez quand un humain doit examiner ou approuver les résultats.
  4. Étiquetez l’audio synthétique et conservez des enregistrements de provenance pour des raisons de responsabilité.

Sources et lectures complémentaires

  1. arXivXTTS: a Massively Multilingual Zero-Shot Text-to-Speech Model
  2. Hugging Facecoqui/XTTS-v2 model card
  3. GitHub (idiap)coqui-ai-TTS: maintained fork of Coqui TTS
  4. GitHub (coqui-ai/TTS)xttsv2, free/paid? company is shutting down? what would happen now? Discussion #4145
  5. arXivBetter speech synthesis through scaling

Continuez à explorer

Newsletter gratuite

Recevez le briefing quotidien sur l'IA

Trois histoires d'IA vérifiées chaque matin de la semaine, écrites dans un anglais simple. Gratuit pour toujours, sans publicité.

Un e-mail chaque jour de la semaine. Désabonnez-vous en un clic. Nous ne vendons ni ne partageons jamais votre adresse.

Testez-vous

Take the XTTS Cross-Lingual Voice Cloning quiz

Commentaires instantanés sur chaque réponse et un certificat partageable avec une pièce d'identité vérifiable une fois que vous avez réussi un cours.

Démarrer le quiz

Soutenez l’enseignement gratuit de l’IA. AI Understanding est une organisation à but non lucratif 501(c)(3) : pas de publicité, pas de paywall, jamais. Faire un don

Questions fréquemment posées

What is XTTS Cross-Lingual Voice Cloning?

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.

Quelle est la capacité déterminante de XTTS ?

XTTS effectue un clonage vocal multilingue, conservant l'identité du locuteur tout en changeant de langue.

Quelle entreprise a développé XTTS ?

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.

Que signifie le clonage « zéro tir » dans XTTS ?

Zero-shot signifie que XTTS clone une nouvelle voix à partir d'un court clip sans recycler le modèle pour ce haut-parleur.

Qu'est-ce que XTTS extrait de l'audio de référence pour préserver l'identité de l'orateur ?

Conditions XTTS sur un haut-parleur intégré qui capture le timbre, distinct du contenu du texte.

Pourquoi XTTS peut-il faire parler une voix dans une langue différente ?

Formé sur des données multilingues avec une représentation partagée, il applique le même locuteur intégré à de nouvelles langues.