

Qwen Audio 3.1 Live 与 Qwen Audio 3.1 Realtime Plus 并排比较:规格、能力、参数,以及 EmpirioLabs 目录中的实时价格。
Qwen Audio 3.1 Live 和 Qwen Audio 3.1 Realtime Plus 都是 Alibaba Cloud 的模型,属于音频生成类别,可通过 EmpirioLabs API 使用。
| 规格 | Qwen Audio 3.1 Live | Qwen Audio 3.1 Realtime Plus |
|---|---|---|
| 模型 ID | qwen-audio-3-1-live | qwen-audio-3-1-realtime-plus |
| 开发方 | Alibaba Cloud | Alibaba Cloud |
| 发布日期 | 2026年11月23日 | 2026年9月20日 |
| 上下文窗口 | - | 240K 个 token |
| 最大输出 | - | 16,384 个 token |
| 输入 | 音频 文本 | 音频 文本 |
| 输出 | 音频 文本 | 音频 文本 |
| 区域 | Singapore | Singapore |
| 端点 | WEBSOCKET /v1/realtime | WEBSOCKET /v1/realtime |
| 能力 |
两个模型在 EmpirioLabs 目录中的实时价格。每张价格表始终与 API 的实际计费一致。
每个模型在 EmpirioLabs 上列出的请求参数,以及适用的可选值或范围。短横线表示该模型未列出此参数。
| 参数 | Qwen Audio 3.1 Live | Qwen Audio 3.1 Realtime Plus |
|---|---|---|
| voice | yunshu, xiaoman, wanfeng, qingyou, poxiao, maiya, wulong, xue... 默认值: yunshu | longanqian_v3.1, longanhuan_v3.1, longanlingxin_v3.1, longanf... 默认值: longanqian_v3.1 |
| instructions | string | string |
| model | qwen-audio-4.0-realtime-preview, qwen-audio-3.1-realtime-flash 默认值: qwen-audio-4.0-realtime-preview | - |
| delegation | string | - |
| input_audio_format | pcm 默认值: pcm | pcm16 默认值: pcm16 |
| output_audio_format | pcm 默认值: pcm | pcm24 默认值: pcm24 |
| turn_detection | string 默认值: {"type":"duplex"} | string 默认值: {"type":"server_vad"} |
| input_language | - | auto, zh, en, ja, ko, vi, th, id, ar, fr, de, es, pt, ru, it 默认值: auto |
| output_language | - | auto, zh, en, ja, ko, vi, th, id, ar, fr, de, es, pt, ru, it 默认值: auto |
| speed | - | 0.5 到 2 |
| enable_speech_emotion | - | boolean 默认值: true |
| max_history_turns | - | 1 到 50 |
| modalities | - | string 默认值: ["text","audio"] |
Full-duplex voice over a WebSocket at wss://api.empiriolabs.ai/v1/realtime?model=qwen-audio-3-1-live, authenticated with the ordinary Authorization Bearer header. This model has its own event protocol, described below, rather than the OpenAI Realtime protocol.
Send one session.update and wait for session.updated. session.model is required:
Set voice, instructions and tools in the same event.
With qwen-audio-4.0-realtime-preview, choose one of the 8 voices in the voice list. With qwen-audio-3.1-realtime-flash, use a voice of Qwen Audio 3.1 Realtime Flash, or leave voice out for its default.
Send session.close and wait for session.closed, or close the socket.
When the model is at capacity, a new session receives a session_unavailable error and close code 1013. Try again shortly.
A session is billed by its length, from when it opens until it closes, in whole seconds, with a partial second counted as a full second and at least 3 seconds per session. Listening, silence and text all count as session time.
在wss://api.empiriolabs.ai/v1/realtime?model=qwen-audio-3-1-realtime-plus通过WebSocket实现全双工语音,并用普通授权承载头进行认证。通过套接字配置session.update会话,包含语音、指令、模式、转向检测、语言和传递。
将input_language设置为你所说的语言,你的演讲文字记录就是用这个语言书写的,output_language到口语回复所用的语言。每个语言分别取自动或 zh、en、ja、ko、vi、th、id、ar、fr、de、es、pt、ru 和 it 中的一个。输出语言不会翻译回复,所以在说明中也要要求它的语言。speed(0.5 到 2)设定说话速率,enable_speech_emotion表达表达,并max_history_turns(1 到 50)模型读取的早期交流次数。
这个型号的音色是独立的一组。从音色列表中选一个,而不是把另一个音色放在另一个模型对面,或者保持不设置,默认音色会被自动提供。
音频和文本代币在双向中分别定价。口头回复仅按其音频输出代币计费,文本输出费率适用于无音频回复。每完成一次回合,根据模型报告的使用情况单独计费。
Qwen Audio 3.1 Live 通过 wss://api.empiriolabs.ai/v1/realtime?model=qwen-audio-3-1-live 的 WebSocket 进行实时对话,而不是通过 HTTP 端点。使用模型 id qwen-audio-3-1-live 连接,并在握手时将 EmpirioLabs API 密钥作为 Authorization: Bearer 请求头发送。音频以 base64 编码的 16 位 PCM 双向传输。 浏览器无法为 WebSocket 设置请求头,请从你的服务器发起该连接,再通过你自己的 socket 把音频转发给浏览器。 两个模型通过同一个端点调用。将 model 设为 qwen-audio-3-1-live 或 qwen-audio-3-1-realtime-plus。 在EmpirioLabs 控制台获取 API 密钥。
import asyncio, json, os, websockets
async def main():
async with websockets.connect(
"wss://api.empiriolabs.ai/v1/realtime?model=qwen-audio-3-1-live",
additional_headers=[
("Authorization", f"Bearer {os.environ['EMPIRIOLABS_API_KEY']}"),
],
max_size=None,
) as ws:
print(json.loads(await ws.recv())["type"]) # session.created
await ws.send(json.dumps({
"type": "conversation.item.create",
"item": {
"type": "message",
"role": "user",
"content": [{"type": "input_text", "text": "Say hello."}],
},
}))
await ws.send(json.dumps({"type": "response.create"}))
async for raw in ws:
event = json.loads(raw)
if event["type"] == "response.audio.delta":
... # base64 audio chunk, append to your playback buffer
elif event["type"] == "response.done":
break
asyncio.run(main())Qwen Audio 3.1 Live 发布更晚(2026年11月23日);Qwen Audio 3.1 Realtime Plus 发布于 2026年9月20日。 仅 Qwen Audio 3.1 Realtime Plus 列出的能力:multilingual。 本页的规格、价格表和参数来自 EmpirioLabs 实时目录。
Qwen Audio 3.1 Live 发布更晚(2026年11月23日);Qwen Audio 3.1 Realtime Plus 发布于 2026年9月20日。
两个模型按不同的单位或档位计价,请比较本页的实时价格表。价格表始终与 API 的实际计费一致。
可以。两个模型都使用 WEBSOCKET /v1/realtime 和同一个 EmpirioLabs API 密钥,大多数集成只需更改 model 值即可切换。如果依赖某个模型特有的参数,请先查看本页的参数表。
可以。在EmpirioLabs Playground中分别打开两个模型并点击 Start session,即可在浏览器中试用。