Qwen Audio 3.1 TTS Plus

Alibaba Cloud · Audio Generation
POST /v1/audio/speechSpeech synthesis for narration and dubbing, with 4 multilingual voices, plain-language delivery direction, inline emotion tags, and voice cloning.
At a glance
Pricing
Example request
Parameters
Notes
Voices
- 4 voices that read Chinese, English, and other languages:
longanlingxin_v3.1,longanhuan_v3.1, andlonganfengyue_v3.1are female, andxunanchuan_v3.1is male. - Every voice id ends in
_v3.1, for examplelonganlingxin_v3.1.
Custom voices
- Set
voicetocustom, passvoice_audio_url, an https URL to 10 to 20 seconds of clear speech from one speaker, and setvoice_consenttotrueto confirm that you have the speaker’s permission to clone their voice. - WAV, MP3, M4A, OGG, WEBM and FLAC are accepted, up to 15 MB. Record in a quiet room, without music or other voices.
- The response includes
voice_idandvoice_id_expires_at. Pass thevoice_idasvoiceto reuse the voice for 7 days, onPOST /v1/audio/speech,POST /v1/audio/speech:streamor the realtime socket, wheresession.updatetakes the same fields andsession.updatedreturns thevoice_id. Only the account that created it can use it, on this model only. - Each account can hold 10 custom voices on this model at a time. Creating a custom voice adds no charge.
Delivery direction
instructionsets emotion, tone, character, pace, and speaking style in natural language, up to 1,000 characters.- Inline tags inside the text change the delivery from that point, for example
[excited]or[whispers], or add a one-time sound such as[laughing]or[sighing]. The full list of tags is on theinputparameter. - SSML input is not supported.
Input limits
- Up to 10,000 characters per request.
language_hintsbiases pronunciation for mixed-language text.
Output
- MP3, WAV, PCM, or Opus at 8,000 to 48,000 Hz.
POST /v1/audio/speech:streamsends audio chunks while the speech is generated.
Realtime
WEBSOCKET /v1/realtime?model=qwen-audio-3-1-tts-plustakes text while it is still being written and returns audio as it is generated. Sendinput_text_buffer.appendevents, theninput_text_buffer.commit, orsession.finishto end the session.- Audio arrives in
response.audio.deltaevents: 16-bit PCM at 24,000 Hz by default, or MP3 or Opus. Set the voice, instruction, format and other options withsession.update; a change applies from the next segment. - Text is spoken in segments that end at sentence boundaries, and each segment ends with a
response.doneevent carrying its usage.
Billing
- Billed per character of the input text. A Chinese character counts as two characters, and inline tags count as characters. The instruction is not billed.
- On the realtime socket each segment is billed for its own characters.
Machine-readable schema: GET https://api.empiriolabs.ai/v1/models/qwen-audio-3-1-tts-plus.
