Non-real-time speech synthesis converts text to speech through the HTTP API. It is designed for latency-tolerant scenarios such as audiobook production, online education voiceovers, and content creation, and supports a wide range of voices, multiple languages, voice cloning, and voice design.
Convert complete text into audio files through the HTTP API. Two output modes are available: non-streaming and streaming.
Before you begin, complete the following preparations:
The following tabs demonstrate speech synthesis for each model series. For more language examples and detailed parameter descriptions, see API reference.
Instruction specifications by model:
This section describes how to generate speech in Chinese dialects (such as Henan dialect and Sichuan dialect). The configuration method varies by model and voice type.
Different models support different voices. Set the
A: The audio file URL is valid for 24 hours after generation. After the URL expires, call the API again to obtain a new URL.
Overview
Convert complete text into audio files through the HTTP API. Two output modes are available: non-streaming and streaming.
- Non-streaming returns an audio file URL valid for 24 hours; streaming returns audio data in chunks.
- Multiple languages are supported, including Chinese dialects.
- Supports Voice cloning and Voice Design for creating custom voices.
- Supports Instruction control to control speech expressiveness through natural language instructions.
Prerequisites
Before you begin, complete the following preparations:
- Configure an API key and set it as an environment variable
- (Optional) If you call the API through the DashScope SDK, install the latest SDK
Quick start
The following tabs demonstrate speech synthesis for each model series. For more language examples and detailed parameter descriptions, see API reference.
- Qwen-TTS
All examples in this section use system voices.
- Non-streaming output
- Streaming output
In non-streaming mode, the response contains a
url field that points to the synthesized audio file. The URL is valid for 24 hours.- Python
- Java
- cURL
Advanced features
Instruction control
Instruction specifications by model:
- Qwen-TTS
Supported models: Only Qwen3-TTS-Instruct-Flash series models are supported.Usage: Pass the instruction content through the
instructions parameter.Supported languages for instruction text: Only Chinese and English are supported.Instruction text length limit: Up to 1,600 tokens.Dialects
This section describes how to generate speech in Chinese dialects (such as Henan dialect and Sichuan dialect). The configuration method varies by model and voice type.
- Qwen-TTS
- System voices: Use system voices that support dialects. See Qwen-TTS voice list.
- Voice cloning voices: Dialects are not supported.
- Voice design voices: Dialects are not supported.
Supported models and regions
- Singapore
- China (Beijing)
To call the following models, use an API key for the Singapore region:
-
Qwen-TTS:
- Qwen3-TTS-Instruct-Flash: qwen3-tts-instruct-flash (stable version, currently equivalent to qwen3-tts-instruct-flash-2026-01-26), qwen3-tts-instruct-flash-2026-01-26 (latest snapshot)
- Qwen3-TTS-VD: qwen3-tts-vd-2026-01-26 (latest snapshot)
- Qwen3-TTS-VC: qwen3-tts-vc-2026-01-22 (latest snapshot)
- Qwen3-TTS-Flash: qwen3-tts-flash (stable version, currently equivalent to qwen3-tts-flash-2025-11-27), qwen3-tts-flash-2025-11-27, qwen3-tts-flash-2025-09-18
Supported system voices
Different models support different voices. Set the voice request parameter to a value from the voice parameter column in the following tables.