HTTP parameters, responses, and examples for creating, listing, and deleting Qwen-Omni voices, and creating and deleting pre-created LiveTranslate voices.
This reference covers Qwen-Omni, Qwen-Omni-Realtime, and pre-created Qwen-LiveTranslate-Realtime voices.
First Obtain API Key and Configure Environment Variables. Request examples read from
Replace
China (Beijing) Region:
Authentication token in the format Set to
Qwen-Omni, Qwen-Omni-Realtime: Supported input audio formats include WAV (16-bit), MP3, and M4A. Recommended length is 10–20 seconds, maximum 60 seconds, file size under 10 MB, sampling rate no less than 24 kHz, and mono-only. The audio must contain at least 3 seconds of continuous, clear speech, with pauses no longer than 2 seconds; avoid background music, noise, or other voices throughout the recording. Use normal speech audio—do not upload songs or singing. Supported languages and dialects are listed in the
Set to
Operation:The model that will use the voice. It must match the model used in subsequent synthesis or conversation calls; otherwise, the call fails.Qwen-Omni, Qwen-Omni-Realtime: The omni model:The reference audio object.
Qwen-Omni, Qwen-Omni-Realtime: Audio used for cloning (recording must follow the Recording Guidelines, and the audio must meet the Audio Requirements).For Qwen-Omni and Qwen-Omni-Realtime, audio data can be submitted in one of two ways:
Qwen-LiveTranslate-Realtime: Public URL of the reference audio.Qwen-Omni, Qwen-Omni-Realtime: Assign a recognizable name to the voice (only digits, uppercase and lowercase letters, and underscores are allowed; maximum 16 characters).Applies to: Qwen-Omni, Qwen-Omni-Realtime.Text that matches the audio content in the Applies to: Qwen-Omni, Qwen-Omni-Realtime.The language corresponding to the The page index. Default: The number of entries per page. Default: The voice ID to delete.After deleting a voice via Qwen-Omni or Qwen-Omni-Realtime, the corresponding voice quota will be released.Applies to: Qwen-Omni, Qwen-Omni-Realtime.The configuration parameters. For qwen3.8-omni series models, this object is required to supply
Voice cloning mode. Required when using the qwen3.8-omni series models; if not specified, it defaults to the qwen3.5-omni talker system instruct mode (backward compatible with legacy services).Valid values:Default value:
The unique identifier of this request.Returned for creation and listing. This field is absent for deletion.
— Returned for creationQwen-Omni, Qwen-Omni-Realtime: The voice name, which can be used as the — Returned for creationQwen-Omni, Qwen-Omni-Realtime: The omni model that drives the voice:— Returned when listing voicesList of voices found.
The voice name, which can be used as the The omni model that drives the voice:The time when the voice was created.Applies to: Qwen-Omni, Qwen-Omni-Realtime.Usage information for this request.
The number of "create voice" operations actually billed for this request. The cost of this request is $count × 0.01.Always 1 for voice creation. Listing or deleting voices is free, so the value is always 0.
If you encounter any errors, please refer to Error Codes for troubleshooting.
| Target model | Operations in this reference |
|---|---|
| Qwen-Omni, Qwen-Omni-Realtime | Create, list, and delete voices |
| Qwen-LiveTranslate-Realtime | Create and delete pre-created voices |
DASHSCOPE_API_KEY. When managing the same voice across different APIs, use the same account.
Service endpoint
Qwen-Omni、Qwen-Omni-Realtime
- China (Beijing)
- Singapore
POST https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/services/audio/tts/customization{WorkspaceId} with the actual Workspace ID; this can be found on the Workspace Details page in the Alibaba Cloud Model Studio console. The API keys differ between Beijing and Singapore.
Qwen-LiveTranslate-Realtime
China (Beijing) Region:
POST https://dashscope.aliyuncs.com/api/v1/services/audio/tts/customization
Request headers
Authorizationstring(Required)Bearer <your_api_key>. Replace <your_api_key> with your actual API key.Content-Typestring(Required)application/json.Audio Requirements and Costs
Qwen-Omni, Qwen-Omni-Realtime: Supported input audio formats include WAV (16-bit), MP3, and M4A. Recommended length is 10–20 seconds, maximum 60 seconds, file size under 10 MB, sampling rate no less than 24 kHz, and mono-only. The audio must contain at least 3 seconds of continuous, clear speech, with pauses no longer than 2 seconds; avoid background music, noise, or other voices throughout the recording. Use normal speech audio—do not upload songs or singing. Supported languages and dialects are listed in the language parameters below; recording recommendations are provided in the Audio Requirements.
Cloning steps, complete examples, and costs are detailed in the Voice Cloning User Guide.
Qwen-LiveTranslate-Realtime: Supports qwen3.8-livetranslate-flash-realtime and qwen3.5-livetranslate-flash-realtime. This section describes pre-creating a voice; extracting the input voice in real time during translation is covered in Voice configuration. Pre-creating a voice incurs separate charges; model invocation remains billed by token usage, as outlined in Billing Information. Reference audio must use a publicly accessible URL.
Request body
modelstring— Requiredqwen-voice-enrollment.inputobject— RequiredProperties
Properties
actionstring— Requiredcreate: Create a voice.list: List voices (Qwen-Omni and Qwen-Omni-Realtime only).delete: Delete a voice.
target_modelstring— Required for creation- qwen3.8-omni-flash-realtime
- qwen3.5-omni-plus-realtime
- qwen3.5-omni-flash-realtime
- qwen3.5-omni-plus
- qwen3.5-omni-flash
audioobject— Required for creationProperties
Properties
datastring— Required-
Data URL
Format:
data:<mediatype>;base64,<data>-
<mediatype>: MIME type- WAV:
audio/wav - MP3:
audio/mpeg - M4A:
audio/mp4
- WAV:
-
<data>: Base64-encoded string of the audio Base64 encoding increases file size; please keep the original file small so that the encoded file remains under 10 MB. -
Example:
data:audio/wav;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjI5LjEwMAAAAAAAAAAAAAAA//PAxABQ/BXRbMPe4IQAhl9
-
-
Audio URL (it is recommended to upload the audio to OSS)
- File size must not exceed 10 MB.
- The URL must be publicly accessible and require no authentication.
Data URL encoding example
Data URL encoding example
python
preferred_namestring— Required for creationThis keyword will appear in the cloned voice name; for example, if the keyword is “guanyu,” the final voice name will be “qwen-omni-vc-guanyu-voice-20250812105009984-838b.”Qwen-LiveTranslate-Realtime: Identifier in the voice name.
textstring— Optional for creationdata field of the audio object.When provided, the server validates the audio against the text. If the mismatch is too large, an Audio.PreprocessError is returned.languagestring— Optional for creationdata audio in the audio object.Supported languages include zh (Chinese), en (English), de (German), it (Italian), pt (Portuguese), es (Spanish), ja (Japanese), ko (Korean), fr (French), ru (Russian), th (Thai), id (Indonesian), ar (Arabic), cs (Czech), da (Danish), nl (Dutch), fi (Finnish), he (Hebrew), hi (Hindi), is (Icelandic), ms (Malay), no (Norwegian), fa (Persian), pl (Polish), sv (Swedish), tl (Tagalog), tr (Turkish), ur (Urdu), vi (Vietnamese).Chinese dialects: Dongbei (Northeastern Mandarin), Shannxi (Shaanxi dialect), Sichuan (Sichuan dialect), Henan (Henan dialect), Changsha (Changsha dialect), Tianjin (Tianjin dialect), Hangzhou (Hangzhou dialect), Liaoning (Liaoning dialect), Shenyang (Shenyang dialect), Anshan (Anshan dialect).If this parameter is used, the specified language must match the language of the audio actually used for cloning.page_indexinteger— Optional when listing voices0. Value range: [0, 1000000].page_sizeinteger— Optional when listing voices10. Value range: [0, 1000000].voicestring— Required for deletionparametersobject— Conditionally required for creationvoice_clone_mode.Properties
Properties
voice_clone_modestring— Conditionally requirednormal: Normal modedialect: Dialect modecrosslingual: Cross-language mode
skip_audio_processboolean— Optionalfalse.Whether to skip audio preprocessing.Request examples
- Create
- List
- Delete
- qwen3.8-omni-flash-realtime
- qwen3.8-livetranslate-flash-realtime
The cURL example uses an audio URL. Replace
https://xxx.wav with your actual address. The Python and Java examples read a local audio file. Replace input.mp3 with your actual file path.cURL
Response body
request_idstringoutputobjectProperties
Properties
voicestringvoice parameter in subsequent Omni API calls.Qwen-LiveTranslate-Realtime: The created voice ID is used in the voice parameter of subsequent translation sessions.target_modelstring- qwen3.8-omni-flash-realtime
- qwen3.5-omni-plus-realtime
- qwen3.5-omni-flash-realtime
- qwen3.5-omni-plus
- qwen3.5-omni-flash
voice_listarray[object]Properties
Properties
voicestringvoice parameter in subsequent Omni API calls.target_modelstring- qwen3.8-omni-flash-realtime
- qwen3.5-omni-plus-realtime
- qwen3.5-omni-flash-realtime
- qwen3.5-omni-plus
- qwen3.5-omni-flash
gmt_createstringusageobjectProperties
Properties
countintegerResponse examples
- Create
- List
- Delete
- qwen3.8-omni-flash-realtime
- qwen3.8-livetranslate-flash-realtime
- Response structure