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 を他のモデルと比較

すべてのモデル比較

より良いエンドポイントを使う準備はできていますか?

ご自身のモデルを当社のスタックに展開したい方は、ぜひご価格をご覧ください。