Skip to content

v2.23.6

Latest

Choose a tag to compare

@luk384090-cloud luk384090-cloud released this 12 Nov 03:42
a16c115

What's New

πŸš€ Qwen Live SDK β€” Realtime WebSocket Conversation API (#290)

A brand-new SDK for building realtime voice conversations with Qwen over WebSocket. The entry point is QwenLiveConversation, which manages a single-connect WebSocket lifecycle with full session management.

Core classes (package com.alibaba.dashscope.audio.live):

  • QwenLiveConversation β€” WebSocket session with connect(), close(), cancel(), and awaitSessionClosed() semantics
  • QwenLiveConnectionParam β€” Connection configuration (API key, model, endpoint); reads DASHSCOPE_WEBSOCKET_QWEN_LIVE_BASE_URL env override
  • QwenLiveSessionConfig β€” Session-level configuration (turn detection, input/output modalities, etc.)
  • QwenLiveResponsesConfig β€” Model response configuration
  • QwenLiveCallback / QwenLiveCallbackDispatcher β€” Unified event callbacks with optional ordered async dispatch
  • QwenLiveContext / QwenLiveContextCompaction β€” Context and context compaction support
  • QwenLiveDelegation / QwenLiveDelegationType β€” Client and responses delegation

Key features:

  • Byte array (byte[]) audio input support
  • Unified onError callback with optional ordered async dispatch
  • Guaranteed single onClose callback β€” transport failures during close now deliver the requested close code correctly
  • Dedicated WebSocket endpoint (no longer shares the Omni base URL)

Samples: QwenLiveQuickStart.java, QwenLiveUsage.java


πŸ”§ Voice Enrollment β€” Base64 Audio Support

VoiceEnrollmentService now supports base64-encoded audio input for voice cloning, in addition to existing audio formats.


πŸ› Bug Fixes

  • close() now always completes with exactly one onClose callback; socket cancellation during close frame rejection no longer causes missed callbacks
  • Transport failures during a pending close now correctly deliver the requested close code instead of being silently dropped

Full Changelog

v2.23.5...v2.23.6

Contributors