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.

Alibaba Cloud ऑडियो जनरेशन रिलीज 23 नव॰ 2026 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
श्रेणी
ऑडियो जनरेशन
रिलीज
23 नव॰ 2026
इनपुट
ऑडियोटेक्स्ट
आउटपुट
ऑडियोटेक्स्ट
रीजन
Singapore
एंडपॉइंट
WEBSOCKET/v1/realtime
वैकल्पिक मॉडल ID
qwen-audio-3.1-livealibaba/qwen-audio-3-1-live

Qwen Audio 3.1 Live API की कीमतें

EmpirioLabs कैटलॉग से लाइव pay-as-you-go दरें। आप साप्ताहिक उपयोग सीमा वाला प्लान भी चुन सकते हैं।

प्रकार
स्पेक
दर
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 key को Authorization: Bearer हेडर के रूप में भेजें। ऑडियो दोनों दिशाओं में base64 16-bit PCM के रूप में जाता है। ब्राउज़र WebSocket पर हेडर सेट नहीं कर सकता, इसलिए यह कनेक्शन अपने सर्वर से खोलें और ऑडियो को अपने सॉकेट के ज़रिए ब्राउज़र तक पहुँचाएँ। EmpirioLabs डैशबोर्ड से API key प्राप्त करें।

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 द्वारा समर्थित request पैरामीटर। फ़ील्ड छोड़ने पर डिफ़ॉल्ट मान लागू होते हैं।

पैरामीटरप्रकारडिफॉल्टरेंज / मानविवरण
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 पर ब्लॉग पोस्ट

घोषणाएं, prompt परीक्षण और तुलनाएं जिनमें यह मॉडल शामिल है।

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 कौन से inputs और outputs सपोर्ट करता है?

Qwen Audio 3.1 Live input के रूप में ऑडियो, टेक्स्ट लेता है और ऑडियो, टेक्स्ट लौटाता है।

Qwen Audio 3.1 Live कौन सा endpoint उपयोग करता है?

Qwen Audio 3.1 Live api.empiriolabs.ai पर WEBSOCKET /v1/realtime के ज़रिए मिलता है, मानक Bearer टोकन प्रमाणीकरण के साथ।

Qwen Audio 3.1 Live का model ID क्या है?

अपनी request में model के रूप में qwen-audio-3-1-live भेजें। वैकल्पिक IDs qwen-audio-3.1-live, alibaba/qwen-audio-3-1-live भी काम करते हैं।

Qwen Audio 3.1 Live कब रिलीज़ हुआ?

Alibaba Cloud ने Qwen Audio 3.1 Live को 23 नव॰ 2026 को रिलीज़ किया।

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 key और मॉडल id qwen-audio-3-1-live के साथ अपने सर्वर से कनेक्ट करें, फिर दोनों दिशाओं में ऑडियो स्ट्रीम करें।

Qwen Audio 3.1 Live की API key कैसे मिलेगी?

EmpirioLabs खाता बनाएं, फिर डैशबोर्ड में API Keys में key जनरेट करें। बिलिंग pay-as-you-go क्रेडिट से होती है, इसलिए आप सिर्फ अपनी requests का भुगतान करते हैं। आप साप्ताहिक उपयोग सीमा वाला प्लान भी चुन सकते हैं।

Qwen Audio 3.1 Live की दूसरे मॉडलों से तुलना करें

सभी मॉडल तुलनाएं

बेहतर समापन बिंदुओं का उपयोग करने के लिए तैयार हैं?

हमारे मूल्य निर्धारण की जाँच करें या यदि आप चाहते हैं कि आपका अपना मॉडल हमारे स्टैक पर तैनात किया जाए, तो पहुंचें।