Qwen3-TTS#
Qwen3-TTS is a multi-codebook text-to-speech model family that streams 24 kHz speech in 10 languages. The 12Hz checkpoint name refers to the codec frame rate. SGLang-Omni serves Base for voice cloning, CustomVoice for built-in speakers, and VoiceDesign for voices described in natural language through the OpenAI-compatible /v1/audio/speech endpoint.

Qwen3-TTS is one Qwen3 LM with two tracks. The text track carries an instruction, such as “Please speak with a warm and encouraging voice.”, beside the words to speak. The other track is 12 Hz multi-codebook codec tokens, with a speaker embedding on that track. An MTP module predicts the residual codebooks and sums them into codec embeddings, and a streaming codec decoder turns those embeddings into the waveform. CustomVoice instructions, VoiceDesign descriptions, and Base reference clips are three ways of filling the speaker and instruction side of this same stack.
Adapted from the Model Architecture figure in the Qwen3-TTS repository (technical report).
Prerequisites#
Install sglang-omni by following Installation. The following example uses Linux with an NVIDIA GPU.
Install the Qwen3-TTS dependencies in the server environment:
apt-get update && apt-get install -y sox
uv pip install --no-deps sox einops
uv pip install --no-deps qwen-tts==0.1.1
See dependency troubleshooting if imports fail.
Server Configuration#
This example uses 1.7B CustomVoice:
sgl-omni serve \
--model-path Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice \
--config examples/configs/qwen3_tts_1_7b_customvoice.yaml \
--port 8000
The first startup will take several minutes for compilation and warmup. Then, in another terminal, run the following command and wait until /health returns HTTP 200:
curl -i http://localhost:8000/health
Synthesizing Speech#
With the 1.7B CustomVoice server running, use the cURL example in TTS Model Usage to generate output.wav. The same guide includes Python and OpenAI SDK examples.
Choose a model#
Goal |
Checkpoint family |
What to provide |
|---|---|---|
Generate speech with a built-in speaker |
Text and a speaker name |
|
Clone a voice |
Text and reference audio; include its transcript for better cloning |
|
Describe a new voice |
Text and a voice description |
Use CustomVoice if you do not have a reference clip. For other hardware, such as Ascend NPU or Intel XPU, or for the native Apple Silicon runtime, see platform deployment.
Voice modes#
CustomVoice#
CustomVoice uses voice to select a built-in speaker. The 1.7B model also supports speaking-style control through instructions, while the 0.6B model is primarily intended for speech synthesis with built-in speakers.
List the available speakers:
curl --fail-with-body http://localhost:8000/v1/audio/voices
The 0.6B checkpoint also supports built-in speakers, but reliable style control requires 1.7B. See speaker and dialect behavior for details.
Voice cloning#
Voice cloning requires a Base checkpoint with reference audio or a precomputed speaker embedding. See Voice cloning in TTS Model Usage for setup and request examples.
VoiceDesign#
VoiceDesign generates a voice from a description in instructions and requires the 1.7B VoiceDesign checkpoint. See Voice design in TTS Model Usage for setup and request examples.
Model variants#
Use the full checkpoint ID in --model-path and the request’s model field.
Checkpoint |
Config under |
|---|---|
|
|
|
|
|
|
|
|
|
|
Streaming#
All three voice modes support streaming. With the CustomVoice server running, use the raw WAV and PCM examples in TTS Model Usage. The guide also includes SSE and WebSocket clients.
The default chunk schedule favors early audio. If playback stalls under load, see first-audio chunk tuning.
Common options#
The 1.7B CustomVoice checkpoint supports speaking-style control through instructions; see CustomVoice for checkpoint differences.
Reaching max_new_tokens can truncate speech. A fixed seed does not guarantee byte-identical audio; see deterministic inference.
See Qwen3-TTS parameters for defaults and model-specific controls, and the shared TTS API for common request fields.
Known limitations#
Base requires a reference voice. Provide reference audio or a speaker embedding. Include the audio transcript for better cloning quality. For text-only synthesis, use CustomVoice or VoiceDesign.
Speech may repeat or stop before the sentence ends. Repetition can occur on some inputs. Set
max_new_tokensto limit generation, but allow enough tokens for the full sentence. Check theX-Finish-Reasonresponse header:lengthmeans generation reached the limit, so the audio may be incomplete. See finish reasons and benchmark results.
Advanced Guides#
Tuning: concurrency, streaming continuity, CUDA graphs, deterministic inference, and optional CuTeDSL kernels.
Reference: full parameter defaults, precomputed embeddings, speaker behavior, and dependency troubleshooting.
Platform deployment: Ascend NPU and native Apple Silicon, with links to other installation guides.
Benchmarks: reproduce evaluations and inspect results with their hardware and sampling conditions.