Qwen Audio 3.1 Live API

Full-duplex voice conversation that keeps talking while your application runs delegated tasks, with function calling and billing by the second.

Alibaba Cloud 오디오 생성 출시 2026년 11월 23일 Singapore 독점 엔드포인트 신규

Qwen Audio 3.1 Live 소개

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

realtime speech to speech audio in audio out function calling

Qwen Audio 3.1 Live 사양

모델 ID
qwen-audio-3-1-live
개발사
Alibaba Cloud
카테고리
오디오 생성
출시
2026년 11월 23일
입력
오디오텍스트
출력
오디오텍스트
리전
Singapore
엔드포인트
WEBSOCKET/v1/realtime
대체 모델 ID
qwen-audio-3.1-livealibaba/qwen-audio-3-1-live

Qwen Audio 3.1 Live API 요금

EmpirioLabs 카탈로그의 실시간 종량제 요금입니다. 주간 사용량이 포함된 요금제를 선택할 수도 있습니다.

유형
사양
요금
Session
per second
$0.00142
전체 가격 페이지에서 비교

Qwen Audio 3.1 Live API 호출 방법

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 키를 발급받으세요.

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 API 전체 레퍼런스

Qwen Audio 3.1 Live API 파라미터

EmpirioLabs에서 Qwen Audio 3.1 Live API가 지원하는 요청 파라미터입니다. 필드를 생략하면 기본값이 적용됩니다.

파라미터유형기본값범위 / 값설명
voiceenumyunshuyunshu, 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...
instructionsstring--System guidance for how the model should behave and speak during the conversation.
modelenumqwen-audio-4.0-realtime-previewqwen-audio-4.0-realtime-preview, qwen-audio-3.1-realtime-flashThe 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);...
delegationstring--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_formatenumpcmpcmEncoding of the audio you send in session.input_audio.append: base64 16-bit PCM at 16 kHz, mono.
output_audio_formatenumpcmpcmEncoding of the audio the model streams back in session.output_audio.delta: 16-bit PCM at 24 kHz, mono.
turn_detectionstring{"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,...

알아두면 좋은 점

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 Live 관련 블로그 글

이 모델을 다룬 공지, 프롬프트 테스트, 비교 글입니다.

Qwen Audio 3.1 Live API: 자주 묻는 질문

Qwen Audio 3.1 Live API 비용은 얼마인가요?

EmpirioLabs에서 Qwen Audio 3.1 Live은(는) 종량제로 청구됩니다: Session $0.00142 per second. 주간 사용량이 포함된 요금제를 선택할 수도 있습니다. 이 페이지의 실시간 요금표는 항상 API 청구 금액과 일치합니다.

Qwen Audio 3.1 Live은(는) 어떤 입력과 출력을 지원하나요?

Qwen Audio 3.1 Live은(는) 오디오, 텍스트을(를) 입력으로 받아 오디오, 텍스트을(를) 반환합니다.

Qwen Audio 3.1 Live은(는) 어떤 엔드포인트를 사용하나요?

Qwen Audio 3.1 Live은(는) api.empiriolabs.ai의 WEBSOCKET /v1/realtime를 통해 제공되며 표준 Bearer 토큰 인증을 사용합니다.

Qwen Audio 3.1 Live의 모델 ID는 무엇인가요?

요청의 model 값으로 qwen-audio-3-1-live을(를) 보내세요. 대체 ID qwen-audio-3.1-live, alibaba/qwen-audio-3-1-live도 사용할 수 있습니다.

Qwen Audio 3.1 Live은(는) 언제 출시되었나요?

Alibaba Cloud은(는) 2026년 11월 23일에 Qwen Audio 3.1 Live을(를) 출시했습니다.

Qwen Audio 3.1 Live은(는) 어디에서 제공되나요?

EmpirioLabs의 Qwen Audio 3.1 Live은(는) Singapore에서 제공됩니다.

통합하기 전에 브라우저에서 Qwen Audio 3.1 Live을(를) 사용해 볼 수 있나요?

EmpirioLabs Playground 를 열고 Start session 을 누르면 브라우저에서 바로 사용해 볼 수 있습니다. Qwen Audio 3.1 Live 은(는) 요청과 응답이 아니라 WebSocket으로 동작하므로 직접 연동할 때는 실시간 음성 퀵스타트 부터 시작하세요. EmpirioLabs API 키와 모델 ID qwen-audio-3-1-live 로 서버에서 연결한 뒤 오디오를 양방향으로 스트리밍하면 됩니다.

Qwen Audio 3.1 Live API 키는 어떻게 발급받나요?

EmpirioLabs 계정을 만든 다음 대시보드의 API Keys에서 키를 생성하세요. 요금은 종량제 크레딧이라 실행한 요청에 대해서만 결제합니다. 주간 사용량이 포함된 요금제를 선택할 수도 있습니다.

Qwen Audio 3.1 Live을(를) 다른 모델과 비교

모든 모델 비교

더 나은 엔드포인트를 사용할 준비가 되셨나요?

저희 가격을 확인하시거나 저희 스택에 자체 모델을 배포하고 싶으시면 연락해 주세요.