Text to Speech
Call Ali qwen3-tts-instruct-flash through the unified /v1/audio/speech endpoint.
Response contract:
- non-streaming returns the official Ali JSON response;
- streaming returns
text/event-streamand forwards Ali SSE payloads.
Authorizations
Headers
Body
Optimizes instructions semantically to improve the naturalness and expressiveness of voice synthesis.
Default: false.
Behavior: When set to true, the system semantically enhances and rewrites the instructions content to generate internal instructions better suited for voice synthesis.
Recommended for high-quality, refined voice expression.
Depends on the instructions parameter. If instructions is empty, this parameter has no effect.
Scope: This feature is only supported by the qwen3-TTS-Instruct-Flash series models.
Language type for the synthesized audio. Defaults to Auto.
Auto: Suitable when the text contains multiple languages or the language is uncertain. The model automatically matches pronunciation for different language segments, but accuracy is not guaranteed.- Specified language: Suitable for single-language text. Specifying a language significantly improves synthesis quality, generally outperforming
Auto.
Auto, Chinese, English, German, Italian, Portuguese, Spanish, Japanese, Korean, French, Russian Response
Successful call. Non-streaming returns the official Ali JSON response; streaming returns Ali SSE payloads.