
Full-duplex voice conversation that keeps talking while your application runs delegated tasks, with function calling and billing by the second.
Full-duplex voice conversation that keeps talking while your application runs delegated tasks, with function calling and billing by the second.
Session is configured with session.update events over the socket rather than request parameters. A session is billed by its length, per second, at least 3 seconds.
다른 이름 Qwen Audio Live, Alibaba Cloud Qwen Audio 3.1 Live
qwen-audio-3-1-live/v1/realtimeqwen-audio-3.1-livealibaba/qwen-audio-3-1-liveEmpirioLabs 카탈로그의 실시간 종량제 요금입니다. 주간 사용량이 포함된 요금제를 선택할 수도 있습니다.
Qwen Audio 3.1 Live 은(는) HTTP 엔드포인트가 아니라 wss://api.empiriolabs.ai/v1/realtime?model=qwen-audio-3-1-live 의 WebSocket에서 실시간 대화를 진행합니다. 모델 ID qwen-audio-3-1-live 로 연결하고 핸드셰이크 시 EmpirioLabs API 키를 Authorization: Bearer 헤더로 보내세요. 오디오는 base64 16비트 PCM으로 양방향 전송됩니다. 브라우저는 WebSocket에 헤더를 설정할 수 없으므로 이 연결은 서버에서 열고 오디오는 자체 소켓으로 브라우저에 중계하세요. 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())EmpirioLabs에서 Qwen Audio 3.1 Live API가 지원하는 요청 파라미터입니다. 필드를 생략하면 기본값이 적용됩니다.
| 파라미터 | 유형 | 기본값 | 범위 / 값 | 설명 |
|---|---|---|---|---|
| voice | enum | yunshu | yunshu, xiaoman, wanfeng, qingyou, poxiao, maiya, wulong, xue... | Speaking voice of the qwen-audio-4.0-realtime-preview frontend, set with session.update. With qwen-audio-3.1-realtime-flash, use a voice of Qwen Audio 3.1 Realtime... |
| instructions | string | - | - | System guidance for how the model should behave and speak during the conversation. |
| model | enum | qwen-audio-4.0-realtime-preview | qwen-audio-4.0-realtime-preview, qwen-audio-3.1-realtime-flash | The voice model that holds the conversation, required in session.update. qwen-audio-4.0-realtime-preview listens while it speaks (set turn_detection to duplex);... |
| delegation | string | - | - | How delegated tasks run. {"type": "client"} hands a longer task to your application as a session.delegation.created event while the model keeps talking; return its... |
| input_audio_format | enum | pcm | pcm | Encoding of the audio you send in session.input_audio.append: base64 16-bit PCM at 16 kHz, mono. |
| output_audio_format | enum | pcm | pcm | Encoding of the audio the model streams back in session.output_audio.delta: 16-bit PCM at 24 kHz, mono. |
| turn_detection | string | {"type":"duplex"} | - | duplex with qwen-audio-4.0-realtime-preview, which listens while it speaks and can be interrupted at any moment. Leave it out with qwen-audio-3.1-realtime-flash,... |
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.
이 모델을 다룬 공지, 프롬프트 테스트, 비교 글입니다.
EmpirioLabs에서 Qwen Audio 3.1 Live은(는) 종량제로 청구됩니다: Session $0.00142 per second. 주간 사용량이 포함된 요금제를 선택할 수도 있습니다. 이 페이지의 실시간 요금표는 항상 API 청구 금액과 일치합니다.
Qwen Audio 3.1 Live은(는) 오디오, 텍스트을(를) 입력으로 받아 오디오, 텍스트을(를) 반환합니다.
Qwen Audio 3.1 Live은(는) api.empiriolabs.ai의 WEBSOCKET /v1/realtime를 통해 제공되며 표준 Bearer 토큰 인증을 사용합니다.
요청의 model 값으로 qwen-audio-3-1-live을(를) 보내세요. 대체 ID qwen-audio-3.1-live, alibaba/qwen-audio-3-1-live도 사용할 수 있습니다.
Alibaba Cloud은(는) 2026년 11월 23일에 Qwen Audio 3.1 Live을(를) 출시했습니다.
EmpirioLabs의 Qwen Audio 3.1 Live은(는) Singapore에서 제공됩니다.
EmpirioLabs Playground 를 열고 Start session 을 누르면 브라우저에서 바로 사용해 볼 수 있습니다. Qwen Audio 3.1 Live 은(는) 요청과 응답이 아니라 WebSocket으로 동작하므로 직접 연동할 때는 실시간 음성 퀵스타트 부터 시작하세요. EmpirioLabs API 키와 모델 ID qwen-audio-3-1-live 로 서버에서 연결한 뒤 오디오를 양방향으로 스트리밍하면 됩니다.
EmpirioLabs 계정을 만든 다음 대시보드의 API Keys에서 키를 생성하세요. 요금은 종량제 크레딧이라 실행한 요청에 대해서만 결제합니다. 주간 사용량이 포함된 요금제를 선택할 수도 있습니다.