Skip to navigation

Qwen Audio 3.1 TTS

Qwen Audio 3.1 TTS
Alibaba Cloud · Audio Generation
POST /v1/audio/speech

Real-time speech synthesis with 19 voices, delivery direction in plain language, inline emotion and sound tags, and audio streamed over SSE or WebSocket.

At a glance

FieldValue
Model idqwen-audio-3-1-tts
Model release date2026-09-23
Input modalitiesText
Output modalitiesAudio
Context window-
Weight precision-
Max output tokens60,000
RegionSingapore
Featurestext_to_speech, multilingual, expressive_prosody, emotion_control, voice_tags, low_latency, streaming, realtime, voice_cloning
Native inferenceNo
NewYes
Supported endpointsPOST /v1/audio/speech, POST /v1/audio/speech:stream, WEBSOCKET /v1/realtime, GET /v1/voices
Alternate model idsqwen-audio-3.1-tts, qwen-audio-3.1-tts-flash, alibaba/qwen-audio-3-1-tts

Pricing

ChargeSpecRate
Inputper 1M prompt tokens$0.46
Outputper 1M generated tokens$3.74

Example request

curl https://api.empiriolabs.ai/v1/audio/speech \
-H 'Authorization: Bearer $EMPIRIOLABS_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"model": "qwen-audio-3-1-tts", "input": "Hello from EmpirioLabs."}'

Parameters

ParameterTypeRequiredDefaultDescription
inputstringyes-Text to synthesize, up to 10,000 characters per request. These inline tags change the delivery from the point where they appear: [sad], [amazed], [deep and loud shouting], [trembling], [angry], [excited], [sarcastic], [curious], [like dracula], [bored], [tired], [scornful], [shouting], [asmr], [panicked], [mischievously], [empathetic], [whispers], [reluctantly], [crying], [serious], [very slowly], [very fast]. These add a one-time sound at that point: [gasp], [sighing], [clears throat], [giggles], [laughing], [cough], [snorts]. · Max: 10000
voiceenumno"Emily_v3.1"Voice preset. The 15 English voices read English, and the 4 multilingual voices read Chinese, English, and other languages. Every voice id ends in _v3.1, for example Emily_v3.1. custom clones a voice from voice_audio_url, and the response’s voice_id then works here for 7 days. GET /v1/voices lists your custom voices with their ids. · Allowed: Emily_v3.1, Luna_v3.1, Eric_v3.1, Luca_v3.1, Abby_v3.1, Annie_v3.1, Ava_v3.1, Beth_v3.1, Betty_v3.1, Cally_v3.1, Cindy_v3.1, Donna_v3.1, Andy_v3.1, Brian_v3.1, David_v3.1, longanhuan_v3.1, longanlingxin_v3.1, longanfengyue_v3.1, xunanchuan_v3.1, custom
voice_audio_urlstringno-voice=custom only: an https URL to a 10 to 20 second recording of clear speech from one speaker, the voice to clone (WAV, MP3, M4A, OGG, WEBM or FLAC, up to 15 MB). Record it in a quiet room, without music or other voices.
response_formatenumno"mp3"Audio container. mp3 and opus are compressed, wav is uncompressed PCM in a RIFF header, and pcm is headerless raw samples for chunked playback. On the realtime WebSocket the default is pcm and wav is not available. · Allowed: mp3, wav, pcm, opus
sample_rateenumno24000Output sample rate in Hz. 24000 suits speech playback, and 48000 gives broadcast-quality output at a larger file size. · Allowed: 8000, 12000, 16000, 22050, 24000, 44100, 48000
speednumberno1Speaking rate multiplier. 0.5 is half speed and 2.0 is double speed. · Range: 0.5 – 2.0
pitchnumberno1Pitch multiplier. Values below 1.0 lower the voice and values above raise it. Pitch also shifts the pace of the rendered audio, so pair it with speed when you want to keep the original duration. · Range: 0.5 – 2.0
volumeintegerno50Output loudness, where 50 is the reference level. · Range: 0 – 100
instructionstringno-Natural-language direction for delivery, up to 1,000 characters. Controls emotion, tone, character, pace, and speaking style, for example ‘Speak quickly in an excited, upbeat tone’ or ‘Read slowly like a late-night radio host’. · Max: 1000
language_hintsarrayno-Language codes that bias pronunciation for mixed-language text, for example [“zh”, “en”]. Leave unset to let the model detect the language. · Allowed: zh, en, fr, de, ja, ko, ru, pt, th, id, vi, es, it, ms, fil, ar
seedintegerno0Sampling seed. Reuse a seed with identical input and settings for a repeatable render. · Range: 0 – 65535
bit_rateintegerno32000Encoder bitrate in bps. Applies to the opus format only, and is ignored for mp3, wav, and pcm. · Range: 6000 – 510000
pronunciationobjectno-Pronunciation overrides keyed by the written form, for example {“重要”: “zhong4 yao4”}. Use it to fix names, acronyms, and homographs.
replaceobjectno-Literal text substitutions applied before synthesis, for example {“EmpirioLabs”: “Empirio Labs”}. Useful for brand names and abbreviations.
enable_markdown_filterbooleannofalseStrip Markdown syntax such as asterisks and underscores before synthesis so formatting characters are not read aloud.

Notes

Voices

  • 19 voices: 15 English voices and 4 multilingual voices. Emily, Luna, Eric, and Luca have British accents. Abby, Annie, Ava, Beth, Betty, Cally, Cindy, Donna, Andy, Brian, and David have American accents. The multilingual voices longanhuan_v3.1, longanlingxin_v3.1, longanfengyue_v3.1, and xunanchuan_v3.1 read Chinese, English, and other languages.
  • Every voice id ends in _v3.1, for example Emily_v3.1.

Custom voices

  • Set voice to custom and pass voice_audio_url, an https URL to 10 to 20 seconds of clear speech from one speaker.
  • 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_id and voice_id_expires_at. Pass the voice_id as voice to reuse the voice for 7 days, on POST /v1/audio/speech, POST /v1/audio/speech:stream or the realtime socket, where session.update takes the same fields and session.updated returns the voice_id. Only the account that created it can use it.
  • Each account can hold 10 custom voices on this model at a time.
  • GET /v1/voices?model=qwen-audio-3-1-tts lists the model’s voices, including your custom voices with their ids. Add type=custom to list custom voices alone.
  • DELETE /v1/voices/{voice_id}?model=qwen-audio-3-1-tts deletes a custom voice, which frees its place at once.
  • In the Playground, set Voice to Custom to use a saved voice again, copy its id, or delete it.
  • Creating, listing and deleting custom voices adds no charge.

Delivery direction

  • instruction sets 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 the input parameter.
  • SSML input is not supported.

Input limits

  • Up to 10,000 characters per request.
  • language_hints biases pronunciation for mixed-language text.

Output

  • MP3, WAV, PCM, or Opus at 8,000 to 48,000 Hz.
  • POST /v1/audio/speech:stream sends audio chunks while the speech is generated.

Realtime

  • WEBSOCKET /v1/realtime?model=qwen-audio-3-1-tts takes text while it is still being written and returns audio as it is generated. Send input_text_buffer.append events, then input_text_buffer.commit, or session.finish to end the session.
  • Audio arrives in response.audio.delta events: 16-bit PCM at 24,000 Hz by default, or MP3 or Opus. Set the voice, instruction, format and other options with session.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.done event carrying its usage.

Billing

  • Input tokens are the text, and output tokens are the generated audio at 12.5 tokens per second.
  • Speed and pitch change the length of the rendered audio but not the billed tokens. An instruction that slows the delivery adds output tokens.

Machine-readable schema: GET https://api.empiriolabs.ai/v1/models/qwen-audio-3-1-tts.