Audio-KI-GUIDE

XTTS Sprachübergreifendes Klonen von Stimmen

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.

Hören Sie sich diesen Leitfaden anKI-erzählt · ~8 min

Auf dieser Seite9 Min. gelesen
  1. Übersicht
  2. Wichtige Erkenntnisse
  3. Tiefer Einblick
  4. Cloning an English voice into Spanish with XTTS-v2
  5. Reale Umsetzung
  6. Die Zukunft des sprachübergreifenden XTTS-Stimmenklonens
  7. In die Tat umsetzen
  8. Quellen und weiterführende Literatur
  9. Entdecken Sie weiter
  10. Häufig gestellte Fragen

Übersicht

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.

Wichtige Erkenntnisse

  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.

Tiefer Einblick

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.

04Ausgearbeitetes Beispiel

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.

Was es zeigt

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.

Reale Umsetzung

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.

Die Zukunft des sprachübergreifenden XTTS-Stimmenklonens

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.

In die Tat umsetzen

Warum es wichtig ist

  • Zugang und Erreichbarkeit. Es verbessert die Zugänglichkeit durch Transkription, Erzählung und Sprachschnittstellen.
  • Kosten und Budget. Medienteams können mit kleineren Budgets schneller ausgefeilte Audioinhalte liefern.
  • Geschwindigkeit und Umfang. Kundenorientierte Systeme können gesprochene Interaktionen in größerem Maßstab verarbeiten.

Achten Sie auf

  • Das Risiko von Stimmmissbrauch und Identitätsdiebstahl steigt, wenn die Einwilligung fehlt.
  • Die Genauigkeit kann je nach Akzent, Dialekt oder lauter Umgebung abnehmen.
  • Synthetisches Audio kann ohne klare Kennzeichnung mit authentischer Sprache verwechselt werden.

Nächste Schritte

  1. Holen Sie die ausdrückliche Zustimmung zur Spracherfassung, zum Klonen und zur Wiederverwendung ein.
  2. Testen Sie die Qualität über verschiedene Lautsprecher und Hintergrundbedingungen hinweg.
  3. Definieren Sie, wann ein Mensch Ausgaben überprüfen oder genehmigen muss.
  4. Kennzeichnen Sie synthetisches Audio und bewahren Sie Aufzeichnungen über die Herkunft auf, um die Verantwortlichkeit zu gewährleisten.

Quellen und weiterführende Literatur

  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

Entdecken Sie weiter

Kostenloser Newsletter

Erhalten Sie die tägliche KI-Briefing

Drei verifizierte KI-Geschichten jeden Werktagmorgen, in einfachem Englisch geschrieben. Für immer kostenlos, keine Werbung.

Eine E‑Mail jeden Werktag. Abmelden mit einem Klick. Wir verkaufen oder teilen Ihre Adresse nie.

Testen Sie sich selbst

Take the XTTS Cross-Lingual Voice Cloning quiz

Sofortiges Feedback zu jeder Antwort und ein teilbares Zertifikat mit verifizierbarer ID, sobald Sie einen Kurs bestanden haben.

Quiz starten

Unterstützen Sie kostenlose KI-Bildung. AI Understanding ist eine 501(c)(3) gemeinnützige Organisation – keine Werbung, keine Paywall, nie. Machen Sie eine Spende

Häufig gestellte Fragen

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.

Was ist die entscheidende Fähigkeit von XTTS?

XTTS führt sprachübergreifendes Stimmenklonen durch und behält so die Identität eines Sprechers beim Wechseln der Sprache bei.

Welches Unternehmen hat XTTS entwickelt?

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.

Was bedeutet „Zero-Shot“-Klonen in XTTS?

Zero-Shot bedeutet, dass XTTS eine neue Stimme aus einem kurzen Clip klont, ohne das Modell für diesen Sprecher neu zu trainieren.

Was extrahiert XTTS aus dem Referenzaudio, um die Identität des Sprechers zu bewahren?

XTTS-Bedingungen für eine Lautsprechereinbettung, die die Klangfarbe getrennt vom Textinhalt erfasst.

Warum kann XTTS eine Stimme dazu bringen, eine andere Sprache zu sprechen?

Es basiert auf mehrsprachigen Daten mit einer gemeinsamen Darstellung und wendet die gleiche Sprechereinbettung auf neue Sprachen an.