Repository navigation
DashScope Java SDK v2.23.6 Released: Qwen Live SDK for Realtime Voice Conversations #292
luk384090-cloud
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🎉 DashScope Java SDK v2.23.6 is here
We've shipped v2.23.6, headlined by a brand-new Qwen Live SDK for building realtime voice conversations with Qwen over WebSocket. This release also brings base64 audio input to Voice Enrollment and fixes edge cases in WebSocket close handling.
📦 Upgrade
Maven
Gradle
implementation 'com.alibaba:dashscope-sdk-java:2.23.6'🚀 New: Qwen Live SDK — realtime WebSocket conversation API (#290)
The entry point is
QwenLiveConversation, which manages a single-connection WebSocket lifecycle with full session management:connect(),close(),cancel(), andawaitSessionClosed().Core classes in
com.alibaba.dashscope.audio.live:QwenLiveConversation— WebSocket session lifecycle and session managementQwenLiveConnectionParam— connection configuration (API key, model, endpoint); supports theDASHSCOPE_WEBSOCKET_QWEN_LIVE_BASE_URLenvironment overrideQwenLiveSessionConfig— session-level configuration such as turn detection and input/output modalitiesQwenLiveResponsesConfig— model response configurationQwenLiveCallback/QwenLiveCallbackDispatcher— unified event callbacks with optional ordered async dispatchQwenLiveContext/QwenLiveContextCompaction— context and context compaction supportQwenLiveDelegation/QwenLiveDelegationType— client and responses delegationKey features:
byte[]audio input for low-latency streamingonErrorcallback with optional ordered async dispatchonClosecallback — transport failures during close now deliver the requested close code correctly🎧 Voice Enrollment — base64 audio support
VoiceEnrollmentServicenow accepts base64-encoded audio for voice cloning, in addition to the existing audio formats — convenient for serverless and HTTP-only environments.🐛 Bug fixes
close()now always completes with exactly oneonClosecallback; socket cancellation during close-frame rejection no longer causes missed callbacks🧪 Samples
🔗 Links
Thanks to @songguocola for the Qwen Live work. Questions, feedback, or something you've built with it? Reply below — we'd love to hear from you.
All reactions