What if you could transform ordinary text into natural, human-like speech using AI? Imagine creating realistic voices, cloning your own voice, and generating expressive speech without hiring a voice artist. That’s what Qwen3-TTS makes possible. In this guide, we’ll explore everything about Qwen3-TTS, including its key features, how to sign in, how to generate AI voices, and a complete step-by-step tutorial for beginners.
Released in 2026, this open-source multilingual text-to-speech family comes in 0.6B and 1.7B sizes. You can run it with Python for local audio projects, then choose a preset voice, design a persona, or clone a voice.
The main hands-on path here uses local Python, so you can test speech generation on your own computer. You will need a compatible setup for the documented GPU workflow, plus space for model weights. The models and tokenizers use the Apache 2.0 license.
You can begin with a preset voice, then move to voice design or cloning when your project needs more control.
Key Takeaways
- Pick a checkpoint that matches your voice task.
- Use CustomVoice for a built-in speaker.
- Use VoiceDesign for a voice made from a description.
- Use Base when you have reference audio to clone.
- Test a short sample before building a larger workflow.
What Is Qwen3-TTS and Who Is It For?
Qwen3-TTS is an open-source text-to-speech model family for developers and creators who want to generate, customize, or clone spoken audio. Its models support speech generation, voice creation, voice cloning, and natural-language control across 10 released languages.
A speech tokenizer is a component that converts speech into discrete codes and reconstructs audio from those codes. The model family and tokenizers use the Apache 2.0 license, which allows broad reuse under its terms. Check the exact terms for your planned use, especially when a project includes other people’s recordings.
Review model weights, code, and supplied voice recordings as separate parts of your project.
Developers can use the models to add narration or spoken responses to software. Creators can produce drafts, character voices, and audio for videos or learning materials. Teams can prototype spoken content before committing to a full production workflow.
Natural-language control lets you describe qualities such as tone or delivery instead of relying only on fixed settings. The choice of checkpoint shapes the tools available, so one model may suit preset speech better than another.
Open licensing does not settle every question about a voice recording. You still need to consider permission, privacy, and the rules that apply to your project.
Treat the model weights, the code, and any voice recordings you supply as separate parts of your project’s review.
How the 12Hz Tokenizer Produces Streaming Audio

The 12Hz tokenizer is designed to start reconstructing audio without waiting for future speech tokens. In this name, 12Hz refers to a rate of 12.5 code steps per second, while the older 25Hz tokenizer uses 25 steps per second.
The 12Hz design combines semantic and acoustic codebooks with a lightweight causal decoder. Codebooks are groups of discrete values that represent speech information. The semantic codes carry content, while acoustic codes help shape the sound.
The 12Hz models use a dual-track architecture that can produce an audio packet after processing one character. This can help streaming generation begin early, before the full utterance is ready.
For single-stream output, first-packet latency is 97 milliseconds for the 0.6B model and 101 milliseconds for the 1.7B model. Those figures describe the wait for the first packet, not the time required to generate every word.
Latency can mean different things in a speech system. First-packet latency measures the wait until the opening audio chunk. Full-utterance time includes the rest of the requested text and can be much longer.
Both streaming and non-streaming generation are supported. Streaming sends audio in chunks as generation proceeds, which suits interactive uses. Non-streaming generation produces a finished clip before playback.
The lightweight 12Hz speech tokenizer also differs in structure from Qwen-TTS-Tokenizer-25Hz, which uses a single-codebook representation. The two rates describe how often codes represent speech over time, not a promise about total generation speed.
Read a first-packet latency as the time to the opening audio chunk, not the time to finish a full recording.
Which Model Fits Your Task?
Choose CustomVoice for a ready-made speaker, VoiceDesign for a new described voice, and Base when you have reference audio to clone. The released 1.7B checkpoints include all three families, while 0.6B offers Base and CustomVoice.
The 1.7B CustomVoice checkpoint has listed instruction control, and 1.7B VoiceDesign creates a voice from a description. The released-model table does not mark the 0.6B Base and CustomVoice checkpoints for instruction control.
Preset voices and instruction control
CustomVoice gives you a choice of nine built-in timbres. A timbre is the quality that makes one voice sound distinct from another. Choose this family when a preset speaker meets your project’s needs.
For a ready-made speaker with delivery guidance, the 1.7B CustomVoice option is the released choice with listed instruction control. The 0.6B CustomVoice model can still generate speech with its preset speakers, but the released-model table does not list instruction control for it.
If you need a quick comparison of voice-generation approaches, a separate editor-based AI voice workflow can help you weigh a different tool against local model use.
Description-led voices and cloning
VoiceDesign creates a new voice from natural-language details, such as pitch or speaking style. Base uses a voice-clone prompt built from reference audio, so it fits a project that needs a voice based on a specific clip.
The technical report also lists a Qwen3-TTS-25Hz-1.7B-VoiceEditing model family alongside 25Hz Base and CustomVoice variants. Treat that name as a reported family, not as proof that a particular checkpoint is ready for your workflow.
Use CustomVoice for a preset, VoiceDesign for a new persona, and Base for cloning. Before you write code, confirm that the exact checkpoint you need is available in the model collection you plan to use.
What You Need Before Installing

Prepare a clean Python environment and check your accelerator before downloading a large checkpoint. The official quickstart recommends an isolated Python 3.12 environment.
Plan for Python, PyTorch, and a compatible GPU if you intend to follow the documented CUDA path. You also need disk space for model weights and a stable network connection to download them.
Memory use depends on the checkpoint, input length, data type, and whether FlashAttention is available. A longer passage or larger model can demand more memory. FlashAttention 2 needs compatible hardware and a model loaded with torch.float16 or torch.bfloat16.
Check these items before setup:
- Python version: use an isolated Python 3.12 environment.
- GPU and CUDA: confirm that your accelerator works with the chosen runtime.
- Storage: leave room for model weights and generated audio files.
- Network access: use a stable connection for package and checkpoint downloads.
PyTorch and GPU support can vary with your system. Check your installed runtime and accelerator before relying on a CUDA example.
If your machine has less than 96GB of RAM and many CPU cores, installation guidance gives MAX_JOBS=4 for FlashAttention 2. If your hardware cannot use FlashAttention 2, leave that optional optimization out rather than forcing an incompatible install.
Install Qwen3-TTS and Its Dependencies
The shortest local setup is a fresh Python 3.12 environment followed by the qwen-tts package install. Use the PyPI package for a quick start and an editable install for local code development.
Make a new environment, activate it, and install the package. The exact activation command depends on your operating system and environment tool.
Install the package in an isolated environment
Follow this short sequence:
- Create and activate a clean Python 3.12 environment.
- Install the quickstart package with pip install -U qwen-tts.
- Test the package import before fetching model weights.
The Hugging Face model ID can load weights directly in an inference script. Installing the package does not mean every checkpoint has already been downloaded.
Add the source checkout or optional attention optimization
For source development, clone the repository with git clone https://github.com/QwenLM/Qwen3-TTS.git, then run pip install -e . from its folder. Editable mode uses your local checkout when Python imports the package.
FlashAttention 2 is an optional memory optimization. It requires compatible hardware and a supported model data type. Install it with pip install -U flash-attn –no-build-isolation when your system meets those needs.
If your machine has less than 96GB of RAM and many CPU cores, use MAX_JOBS=4 pip install -U flash-attn –no-build-isolation. That setting limits parallel build jobs for the install.
Test the package import before spending time downloading a large model.
Generate Your First Speech with CustomVoice

For a first test, load CustomVoice and synthesize one short sentence with a supported speaker. The model accepts text, language, speaker, and an optional style instruction.
This example loads the 1.7B checkpoint from Hugging Face on the first CUDA device. You can instead point the model loader to a local directory containing weights.
Use a speaker and language returned by the selected checkpoint, rather than assuming names work across models.
Run this compact Python example after installing the package and soundfile:
import torch; import soundfile as sf; from qwen_tts import Qwen3TTSModel; model = Qwen3TTSModel.from_pretrained(“Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice”, device_map=”cuda:0″, dtype=torch.bfloat16, attn_implementation=”flash_attention_2″); print(model.get_supported_speakers()); print(model.get_supported_languages()); text = “Welcome to the first test of this spoken audio project.”; wavs, sample_rate = model.generate_custom_voice(text=text, language=”English”, speaker=”Ryan”, instruct=”Speak clearly and warmly.”); sf.write(“first_sample.wav”, wavs[0].cpu().numpy(), sample_rate)
The example uses the official checkpoint ID and the documented CUDA setup. If your hardware cannot use FlashAttention 2, omit that attention setting instead of trying to force it.
The result is saved as first_sample.wav, using the sample rate returned by generation. Play the saved WAV file once before changing several generation settings at the same time.
Design a Voice with Natural-Language Instructions
A useful voice description names what a listener should hear, such as pitch, pace, accent, emotion, and vocal clarity. Concrete audible traits give VoiceDesign more useful direction than vague labels.
The 1.7B VoiceDesign checkpoint can create a described voice and supports instruction control and streaming. You can name traits such as age, volume, fluency, tone, or personality when they matter to the result.
Describe audible traits in concrete terms
Try a direction such as “a low-pitched voice with a calm pace, clear diction, and a light regional accent.” This gives the model audible traits to work with. A label like “professional” alone gives less guidance.
Here is a complete call that saves the generated waveform as output.wav:
from qwen_tts import Qwen3TTSModel; import soundfile as sf; model = Qwen3TTSModel.from_pretrained(“Qwen/Qwen3-TTS-12Hz-1.7B-VoiceDesign”, device_map=”cuda:0″); wavs, sample_rate = model.generate_voice_design(text=”The train leaves in five minutes.”, language=”English”, instruct=”Use a clear, low-pitched voice with a steady pace and calm tone.”); sf.write(“output.wav”, wavs[0].cpu().numpy(), sample_rate)
Refine emotion and delivery without changing the text
Emotions in Qwen3-TTS speech can be guided with words such as excited, restrained, or sad. Listen to each result, since the same instruction may not sound identical across different text or settings.
Change only one or two vocal traits in each test. For example, keep the pace steady while changing the emotion, then compare the clips. This makes the effect of each instruction easier to hear.
The example writes the returned waveform and sample rate to a WAV file. Keep the spoken text fixed while you revise the description, so you can hear what the instruction changed.
Clone a Voice from Reference Audio

A Base model can clone a voice from a short reference clip, and the transcript helps preserve more of the reference’s prosody. The released 1.7B Base and 0.6B Base models support cloning from three-second user audio samples.
You need a Base checkpoint, reference audio, its transcript, the new text, and the target language. The reference clip can be a local path, URL, base64 string, or waveform paired with its sample rate.
Supply a clean clip and its transcript
Use this practical sequence:
- Choose a reference clip you have permission to process.
- Pair the clip with an accurate transcript.
- Create a voice-clone prompt from the reference inputs.
- Generate new text in a supported target language.
The transcript helps the model connect the recorded sound with the words and timing. A mismatch between the transcript and clip can affect the result.
A compact call with the 0.6B Base checkpoint can look like this:
from qwen_tts import Qwen3TTSModel; model = Qwen3TTSModel.from_pretrained(“Qwen/Qwen3-TTS-12Hz-0.6B-Base”, device_map=”cuda:0″); wavs, sample_rate = model.generate_voice_clone(text=”Your new spoken line goes here.”, language=”English”, ref_audio=”reference.wav”, ref_text=”The words spoken in the reference clip.”)
Reuse a voice-clone prompt across lines
For several lines, create a voice-clone prompt once and reuse it. The method create_voice_clone_prompt prepares reusable cloning inputs, so you do not rebuild prompt features for every generation.
The optional x_vector_only_mode=True setting removes the ref_text requirement. It uses speaker-vector information without the transcript, but cloning quality may drop.
Use only reference audio you have permission to process, and verify the transcript before judging the clone.
Check Language, Speaker, and Dialect Support
Check the selected model’s supported-language and speaker lists before building a multilingual workflow. The released models list 10 languages: Chinese, English, Japanese, Korean, German, French, Russian, Portuguese, Spanish, and Italian.
Vietnamese is not among those listed released-model languages, so do not assume the checkpoints provide native Vietnamese support. A model may still produce audio from other input, but that is not the same as listed language support.
Match the language to the checkpoint
Use the language names supported by the checkpoint when you generate speech. A speaker who sounds natural in one language may handle another language differently, especially when pronunciation patterns change.
Test the final speaker with short lines in each target language. Check names, sounds, and pacing rather than judging a multilingual voice from one sample alone.
Keep preset timbres distinct from dialect coverage
The released CustomVoice checkpoints offer nine built-in timbres. A December 2025 update describes more than 49 timbres and nine Chinese dialects: Mandarin, Hokkien, Wu, Cantonese, Sichuanese, Beijing, Nanjing, Tianjin, and Shaanxi.
Those counts describe different sets. The nine built-in CustomVoice timbres are a specific released preset group, while the broader description includes timbres and dialects. Do not treat the two numbers as interchangeable.
For example, a speaker preset may be available even when a dialect is not listed as its own option. Test the speaker and language pair you plan to use, since a voice’s natural language can affect how well it carries into another language.
Test a short sentence in each intended language with the final speaker rather than assuming one language’s results transfer unchanged.
Improve Pronunciation, Audio Quality, and Consistency

The fastest way to diagnose a weak sample is to keep the test sentence fixed and listen for one problem at a time. Changing the text and voice instruction together makes it hard to tell what caused a difference.
Check names, abbreviations, punctuation, numerals, and language-specific spelling in your input text. Small changes in written form can affect how the model reads a line aloud.
Listen for pronunciation, pacing, clipped endings, and delivery changes you did not want. If a name sounds wrong, test a revised spelling while keeping the voice direction unchanged.
Save each WAV with the sample rate returned by generation. Compare the same short passage across revisions, rather than relying on memory to judge the audio.
Keep one known-good prompt and its settings. CustomVoice can generate one sentence or a batch of text-and-speaker inputs, which helps when you need to compare related lines.
Make one focused change per test. If you change both the words and the voice direction, the new result cannot show which change mattered.
Save the prompt and settings for any take you may need to reproduce.
Use Streaming and Batch Inference

Use streaming when a listener benefits from hearing the beginning before the full text has been synthesized. Choose non-streaming generation when you need a finished clip before playback.
Streaming sends audio in chunks as the model works. This can suit an interactive tool, while non-streaming inference suits a complete file or a set of planned recordings.
Choose streaming for interactive output
A browser demo can play chunks as they arrive. The vLLM-Omni streaming demo describes gapless playback with an AudioWorklet FIFO buffer and a separate audio-download option.
Streaming and full-clip generation serve different needs. A listener in a live tool may value early audio, while an editor may prefer to review a complete recording.
Batch related requests with compatible settings
Batching processes several related requests together. Keep the input lists aligned for text, language, speaker, and instructions so each line receives the intended settings.
vLLM-Omni documents three Qwen3-TTS inference tasks. Its documented workflow is for offline inference, and CUDA graph capture uses a batch size that must be a power of two.
- CustomVoice: generate speech with preset speakers.
- VoiceDesign: generate speech from a voice description.
- Base cloning: generate speech from reference audio.
The vLLM-Omni performance guide discusses batching, CUDA graphs, and async chunking for speech serving. Those techniques affect interactive timing and offline throughput in different ways.
Confirm the batch-size constraint before launching vLLM-Omni inference.
Run the Demo Locally or in Docker

The local web UI is the quickest way to test a checkpoint without writing an inference script. Launch it with qwen-tts-demo and a selected checkpoint name.
For example, use qwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice in a terminal, then open the local address shown by the command. The interface lets you try a checkpoint through a browser.
Launch the local web interface
The local demo runs on your own machine and uses the checkpoint you select. It differs from the hosted Hugging Face Spaces demo, which uses Zero GPU and has a time limit for each generation.
For long hosted-demo passages, split the text into smaller segments. That keeps each request within the per-generation limit and makes it easier to review the output in parts.
Choose a containerized DGX Spark setup
A community image called martinb78/faster-qwen3-tts-dgx-spark lists VoiceClone, VoiceDesign, and CustomVoice services for NVIDIA DGX Spark GB10. It is a community setup, not a universal official Docker image.
Remote Base-model access through Gradio may need HTTPS for microphone permission. A self-signed certificate can support testing, but browsers may warn because it is not trusted by a public certificate authority. The example certificate is valid for 365 days.
For remote microphone access, use HTTPS and a properly managed certificate rather than relying on a self-signed certificate in production.
Connect Qwen3-TTS to Apps and Android

For an Android app workflow, the practical route is usually a server that generates speech and returns audio to the client. Qwen3-TTS needs a wrapper or gateway to expose an OpenAI-compatible TTS API.
The app sends text and voice settings to the server, then receives an audio response. The wrapper connects the client’s request format to Qwen3-TTS inference and returns the generated sound in a format the app can play.
This server-and-client approach is practical when an Android device cannot run the chosen model locally. It does not require a native Android package or promise direct on-device inference.
Voice names may need mapping when an app expects a fixed menu. Speech Central can use a custom server URL, but its predefined voice choices may need to map to Qwen voices.
An API wrapper also gives you a place to manage requests, settings, and audio responses. Keep the client’s expected voice names and the model’s available speakers in sync.
The OpenAI speech API reference shows one example of a text request returning audio, though it documents OpenAI’s service rather than Qwen3-TTS.
Test the voice-name mapping and returned audio format with one short request before connecting the full app workflow.
Troubleshoot Common Runtime Problems

Start troubleshooting by matching the error message to the stage where the run stopped. Fix one likely cause at a time instead of changing several settings together.
A package error, checkpoint error, memory failure, and missing output point to different parts of the workflow. Check the message and the active Python environment first.
Resolve package and checkpoint errors
Use these symptom-to-check pairs:
- ModuleNotFoundError: check whether the package is installed in the active Python environment.
- Model-loading error: check the model ID or local directory path for typos.
Python may use a different environment than the one where you installed the package. Confirm the interpreter and environment before reinstalling anything.
Diagnose device and output failures
- CUDA out of memory: the selected workload exceeds available GPU memory; reduce batch size or input length.
- Missing or unreadable output: check the save path, file permissions, and whether the run reached the save step.
A code error means the run stopped before successful output. A completed run that saved audio somewhere unexpected is a path or file-location issue instead.
Hardware and dependency conflicts can have more than one cause, so a single change may not solve every setup. Keep a record of the last working configuration while testing.
Change one setting, rerun the same input, and keep the previous working configuration available.
What Do the Performance Results Tell You?
A benchmark number describes one evaluation task, not a promise that every generated clip will sound the same. Word error rate, or WER, measures transcription errors; speaker similarity measures voice identity.
Qwen reports a 2.34% average WER for multilingual voice control. In a continuous 10-minute synthesis test, WER was 2.36% for Chinese and 2.81% for English.
For voice cloning on a 10-language test set, the reported average WER was 1.835%, with speaker similarity of 0.789. These numbers describe different qualities: accurate words do not alone prove that a clone sounds like the intended speaker.
The tokenizer evaluation reports speaker similarity of 0.95. The models were trained on more than 5 million hours of speech data, but training scale does not ensure the same result for every input.
Results can change with the voice, language, text, and recording. A clean test clip in one language may not predict how a different speaker or language will sound.
Make samples with the language and speaker your project needs. Listen for correct pronunciation and check whether the voice stays consistent across several lines.
Judge a model on the language, speaker, and text your own project will actually use.
Conclusion
Start with the simplest model path that meets your project’s voice requirements. CustomVoice is a clear starting point for preset speech, while VoiceDesign creates a described voice and Base handles cloning.
Keep your first test small. A short line makes it easier to spot pronunciation issues, assess the speaker, and judge whether the style fits.
Choose a short test passage, generate a sample, and keep the result only after it meets your pronunciation and consistency needs.
FAQ
Can you run Qwen3-TTS on a CPU?
Is Qwen3-TTS free for commercial use?
Can you clone a voice without a transcript?
Does Qwen3-TTS directly edit an existing recording?
Why might a cloned voice sound less consistent across different languages?
Can Qwen3-TTS generate audio from a long script in one hosted-demo request?
Sources
- Qwen3-TTS – vLLM-Omni — Shows streaming playback with an AudioWorklet FIFO buffer and a non-streaming download option.
- Custom Voices With Qwen3-TTS — Explores voice embeddings, blending, cloning, and speaker recognition through hands-on experiments.
- Speech Generation Performance Optimizations – vLLM-Omni — Explains batching, CUDA graphs, and async chunking for speech serving.
- Create speech | OpenAI API Reference — Describes text requests, voice and speed settings, audio formats, and streaming for OpenAI speech.