
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 कैटलॉग से लाइव pay-as-you-go दरें। आप साप्ताहिक उपयोग सीमा वाला प्लान भी चुन सकते हैं।
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 प्राप्त करें।
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 द्वारा समर्थित request पैरामीटर। फ़ील्ड छोड़ने पर डिफ़ॉल्ट मान लागू होते हैं।
| पैरामीटर | प्रकार | डिफॉल्ट | रेंज / मान | विवरण |
|---|---|---|---|---|
| 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.
घोषणाएं, prompt परीक्षण और तुलनाएं जिनमें यह मॉडल शामिल है।
EmpirioLabs पर Qwen Audio 3.1 Live का बिल उपयोग के अनुसार बनता है: Session $0.00142 per second। आप साप्ताहिक उपयोग सीमा वाला प्लान भी चुन सकते हैं। इस पेज की लाइव दर तालिका हमेशा API की वास्तविक बिलिंग से मेल खाती है।
Qwen Audio 3.1 Live input के रूप में ऑडियो, टेक्स्ट लेता है और ऑडियो, टेक्स्ट लौटाता है।
Qwen Audio 3.1 Live api.empiriolabs.ai पर WEBSOCKET /v1/realtime के ज़रिए मिलता है, मानक Bearer टोकन प्रमाणीकरण के साथ।
अपनी request में model के रूप में qwen-audio-3-1-live भेजें। वैकल्पिक IDs qwen-audio-3.1-live, alibaba/qwen-audio-3-1-live भी काम करते हैं।
Alibaba Cloud ने Qwen Audio 3.1 Live को 23 नव॰ 2026 को रिलीज़ किया।
EmpirioLabs पर Qwen Audio 3.1 Live Singapore से सर्व किया जाता है।
EmpirioLabs playground खोलें और Start session दबाकर इसे अपने ब्राउज़र में आज़माएँ। Qwen Audio 3.1 Live अनुरोध और प्रतिक्रिया के बजाय WebSocket पर चलता है, इसलिए इसे जोड़ने के लिए रियलटाइम वॉइस क्विकस्टार्ट से शुरू करें। अपनी EmpirioLabs API key और मॉडल id qwen-audio-3-1-live के साथ अपने सर्वर से कनेक्ट करें, फिर दोनों दिशाओं में ऑडियो स्ट्रीम करें।
EmpirioLabs खाता बनाएं, फिर डैशबोर्ड में API Keys में key जनरेट करें। बिलिंग pay-as-you-go क्रेडिट से होती है, इसलिए आप सिर्फ अपनी requests का भुगतान करते हैं। आप साप्ताहिक उपयोग सीमा वाला प्लान भी चुन सकते हैं।
हमारे मूल्य निर्धारण की जाँच करें या यदि आप चाहते हैं कि आपका अपना मॉडल हमारे स्टैक पर तैनात किया जाए, तो पहुंचें।