Skip to main content
The Base models (Qwen3-TTS-12Hz-1.7B-Base and Qwen3-TTS-12Hz-0.6B-Base) enable rapid voice cloning from just 3 seconds of reference audio. Clone any voice and generate new speech with the same timbre and characteristics.

Overview

Voice cloning allows you to:
  • Clone any voice from a short audio sample (3+ seconds recommended)
  • Generate new content in the cloned voice
  • Create reusable voice prompts for consistent generation
  • Choose between full cloning (ICL mode) or speaker embedding only

Basic Voice Cloning

Clone a voice and generate speech in one call:

Reference Audio Requirements

Audio Input Formats

The ref_audio parameter accepts multiple formats:

Quality Guidelines

Duration

3+ seconds recommended for best results. Longer samples may improve quality.

Clean Audio

Use clear audio without background noise, music, or multiple speakers.

Single Speaker

Reference audio should contain only the target speaker’s voice.

Natural Speech

Normal speaking pace and intonation work best. Avoid shouting or whispering.

Reusable Voice Prompts

For better performance when generating multiple times with the same voice, create a reusable prompt:
Reusing prompts avoids recomputing audio features, significantly improving performance when generating multiple outputs.

ICL Mode vs X-Vector Only Mode

The Base model supports two cloning modes: In-Context Learning (ICL) uses both the reference audio codes and speaker embedding:
Advantages:
  • Higher quality cloning
  • Better preservation of voice characteristics
  • More natural prosody
Requirements:
  • Must provide ref_text (transcript of reference audio)

X-Vector Only Mode

Uses only the speaker embedding (x-vector) without reference codes:
Advantages:
  • No need for reference text
  • Faster processing
Disadvantages:
  • Lower cloning quality
  • Less accurate voice characteristics
ICL mode (x_vector_only_mode=False) is strongly recommended for best quality. Only use x-vector mode when you cannot provide reference text.

Batch Voice Cloning

Same Voice, Multiple Texts

Generate multiple outputs using the same cloned voice:

Different Voices, Multiple Texts

Clone multiple voices and generate in batch:

Complete Example

Here’s the official example demonstrating all cloning modes:
examples/test_model_12hz_base.py

Generation Parameters

Customize the generation:

Combining Voice Design and Cloning

Create a custom voice with VoiceDesign, then clone it for consistent character voices:
See the Voice Design guide for more details on this workflow.

Troubleshooting

  • Use ICL mode instead of x-vector only mode
  • Ensure reference audio is clean and clear
  • Use longer reference audio (5-10 seconds)
  • Verify reference text exactly matches the audio
Make sure ref_text is provided when x_vector_only_mode=False. The text should accurately transcribe the reference audio.
For batch processing, reduce batch size or use the 0.6B model instead of 1.7B.

Next Steps