Qwen Audio 3.1 Live vs Qwen Audio 3.1 Realtime Flash

Qwen Audio 3.1 Live 与 Qwen Audio 3.1 Realtime Flash 并排比较:规格、能力、参数,以及 EmpirioLabs 目录中的实时价格。

Alibaba Cloud 音频生成

Qwen Audio 3.1 Live vs Qwen Audio 3.1 Realtime Flash 概览

Qwen Audio 3.1 Live 和 Qwen Audio 3.1 Realtime Flash 都是 Alibaba Cloud 的模型,属于音频生成类别,可通过 EmpirioLabs API 使用。

主要区别

  • Qwen Audio 3.1 Live 发布更晚(2026年11月23日);Qwen Audio 3.1 Realtime Flash 发布于 2026年10月27日。
  • 仅 Qwen Audio 3.1 Realtime Flash 列出的能力:multilingual。

Qwen Audio 3.1 Live vs Qwen Audio 3.1 Realtime Flash:规格

规格Qwen Audio 3.1 LiveQwen Audio 3.1 Realtime Flash
模型 IDqwen-audio-3-1-liveqwen-audio-3-1-realtime-flash
开发方Alibaba CloudAlibaba Cloud
发布日期2026年11月23日2026年10月27日
上下文窗口-240K 个 token
最大输出-16,384 个 token
输入
音频 文本
音频 文本
输出
音频 文本
音频 文本
区域SingaporeSingapore
端点
WEBSOCKET /v1/realtime
WEBSOCKET /v1/realtime
能力
realtime speech to speech audio in audio out function calling
realtime speech to speech audio in audio out function calling multilingual

Qwen Audio 3.1 Live vs Qwen Audio 3.1 Realtime Flash:API 价格

两个模型在 EmpirioLabs 目录中的实时价格。每张价格表始终与 API 的实际计费一致。

Qwen Audio 3.1 Live vs Qwen Audio 3.1 Realtime Flash:API 参数

每个模型在 EmpirioLabs 上列出的请求参数,以及适用的可选值或范围。短横线表示该模型未列出此参数。

参数Qwen Audio 3.1 LiveQwen Audio 3.1 Realtime Flash
voiceyunshu, xiaoman, wanfeng, qingyou, poxiao, maiya, wulong, xue... 默认值: yunshulonganqian_v3.1, longanhuan_v3.1, longanlingxin_v3.1, longanf... 默认值: longanqian_v3.1
instructionsstringstring
modelqwen-audio-4.0-realtime-preview, qwen-audio-3.1-realtime-flash 默认值: qwen-audio-4.0-realtime-preview-
delegationstring-
input_audio_formatpcm 默认值: pcmpcm16 默认值: pcm16
output_audio_formatpcm 默认值: pcmpcm24 默认值: pcm24
turn_detectionstring 默认值: {"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"]

Qwen Audio 3.1 Live vs Qwen Audio 3.1 Realtime Flash:限制与说明

Qwen Audio 3.1 Live

Connecting

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.

Setting up the session

Send one session.update and wait for session.updated. session.model is required:

  • qwen-audio-4.0-realtime-preview with turn_detection set to {"type": "duplex"} listens while it speaks, so it can be interrupted at any moment.
  • qwen-audio-3.1-realtime-flash answers after you pause. Leave turn_detection out with it.

Set voice, instructions and tools in the same event.

Sending and receiving audio

  • Send microphone audio as session.input_audio.append events: base64 16-bit PCM at 16 kHz, mono, in small frames (20 ms works well).
  • The reply streams as session.output_audio.delta events: base64 16-bit PCM at 24 kHz, mono.
  • session.input_transcript.delta carries the transcript of your speech and session.output_transcript.delta the reply's subtitles.
  • session.input_audio.mute and session.input_audio.unmute pause and resume listening without ending the session.
  • Text sent as an input_text message with session.item.create adds information to the spoken conversation.
  • session.usage.updated reports the session's elapsed seconds every 5 seconds.

Delegated tasks and tools

  • With delegation set to {"type": "client"}, the model hands a longer task to your application in a session.delegation.created event and keeps talking meanwhile. Report progress with session.thinking.append, ask the user for a missing detail with session.instruction.append, and return the result with session.commentary.append, each carrying the task's delegation_id. For sessions that delegate tasks, use qwen-audio-3.1-realtime-flash, which reads each returned result aloud.
  • A function declared in tools is called with a session.event whose event.item is a function_call. Run it once per call_id and return the result with session.item.create as a function_call_output.
  • Backend responses (responses delegation) and the WebRTC and AOQ transports are not available on this model.

Voices

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.

Ending a session

Send session.close and wait for session.closed, or close the socket.

Capacity

When the model is at capacity, a new session receives a session_unavailable error and close code 1013. Try again shortly.

Billing

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.

Qwen Audio 3.1 Realtime Flash

连接中

在wss://api.empiriolabs.ai/v1/realtime?model=qwen-audio-3-1-realtime-flash通过WebSocket实现全双工语音,并用普通授权承载头进行认证。通过套接字配置session.update会话,包含语音、指令、模式、转向检测、语言和传递。

音频发送

  • 将麦克风音频作为input_audio_buffer.append事件添加。
  • 语音活动检测会判断你是否停止说话,所以语音结束后继续直播大约一秒钟。

语言与表达方式

将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 和 Qwen Audio 3.1 Realtime Flash

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-flash。 在EmpirioLabs 控制台获取 API 密钥。

Python (websockets)
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 vs Qwen Audio 3.1 Realtime Flash:常见问题

Qwen Audio 3.1 Live 和 Qwen Audio 3.1 Realtime Flash 有什么区别?

Qwen Audio 3.1 Live 发布更晚(2026年11月23日);Qwen Audio 3.1 Realtime Flash 发布于 2026年10月27日。 仅 Qwen Audio 3.1 Realtime Flash 列出的能力:multilingual。 本页的规格、价格表和参数来自 EmpirioLabs 实时目录。

Qwen Audio 3.1 Live 和 Qwen Audio 3.1 Realtime Flash 哪个更新?

Qwen Audio 3.1 Live 发布更晚(2026年11月23日);Qwen Audio 3.1 Realtime Flash 发布于 2026年10月27日。

Qwen Audio 3.1 Live 和 Qwen Audio 3.1 Realtime Flash 哪个价格更低?

两个模型按不同的单位或档位计价,请比较本页的实时价格表。价格表始终与 API 的实际计费一致。

可以在不重构集成的情况下在 Qwen Audio 3.1 Live 和 Qwen Audio 3.1 Realtime Flash 之间切换吗?

可以。两个模型都使用 WEBSOCKET /v1/realtime 和同一个 EmpirioLabs API 密钥,大多数集成只需更改 model 值即可切换。如果依赖某个模型特有的参数,请先查看本页的参数表。

集成之前可以在浏览器里试用 Qwen Audio 3.1 Live 和 Qwen Audio 3.1 Realtime Flash 吗?

可以。在EmpirioLabs Playground中分别打开两个模型并点击 Start session,即可在浏览器中试用。

准备好使用更好的终端了吗?

查看我们的定价,或者如果你想将自己的模型部署到我们的堆栈中,请联系我们。