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
Theref_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:ICL Mode (Default, Recommended)
In-Context Learning (ICL) uses both the reference audio codes and speaker embedding:- Higher quality cloning
- Better preservation of voice characteristics
- More natural prosody
- Must provide
ref_text(transcript of reference audio)
X-Vector Only Mode
Uses only the speaker embedding (x-vector) without reference codes:- No need for reference text
- Faster processing
- Lower cloning quality
- Less accurate voice characteristics
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:Troubleshooting
Poor cloning quality
Poor cloning quality
- 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
Reference text errors
Reference text errors
Make sure
ref_text is provided when x_vector_only_mode=False. The text should accurately transcribe the reference audio.Memory issues
Memory issues
For batch processing, reduce batch size or use the 0.6B model instead of 1.7B.
Next Steps
- Learn about Voice Design to create custom voices
- See Batch Processing for efficient multi-voice generation
- Explore Streaming for real-time applications