Skip to content

feat:add qwen live sdk - #290

Merged
luk384090-cloud merged 3 commits into
dashscope:mainfrom
songguocola:feature/qwen-live-sdk
Nov 11, 2026
Merged

luk384090-cloud merged 3 commits into
dashscope:mainfrom
songguocola:feature/qwen-live-sdk

Conversation

@songguocola

Copy link
Copy Markdown
Contributor

No description provided.

Add com.alibaba.dashscope.audio.live: QwenLiveConversation WebSocket
session with single-connect lifecycle, connection/session config
(QwenLiveConnectionParam, QwenLiveSessionConfig), client/responses
delegation, byte[] audio input, unified onError with optional ordered
async callback dispatch, and close/cancel/awaitSessionClosed semantics.

Include protocol/conversation/config/param unit tests and quick-start
and usage samples. QwenLiveConnectionParam reuses the existing
DASHSCOPE_WEBSOCKET_OMNI_BASE_URL env override.
…RL env

close() now always completes with a single onClose callback: the client no
longer cancels the socket when echoing the close frame is rejected, and a
transport failure during a pending close delivers the requested close code
instead of being silently dropped. cancel() stays silent.

Qwen Live reads DASHSCOPE_WEBSOCKET_QWEN_LIVE_BASE_URL instead of sharing
the Omni variable, so overriding one endpoint no longer redirects the other.
@luk384090-cloud
luk384090-cloud merged commit b847f41 into dashscope:main Nov 11, 2026
3 checks passed
lzsweb pushed a commit that referenced this pull request Nov 25, 2026
…nline

Bring two upstream github/main features into the 3.0 layout:

- agentstudio (PR #288): PerToolConfig gains params (e.g.
  knowledge_application_id for the search_knowledgebases RAG tool);
  SessionResource echoes provider/entity_id/project_ids/profile_schema for
  bailian memory mounts and region/bucket/oss_path for oss mounts; Mount is
  a typed create-time input extending LinkedHashMap that fits the existing
  List<Map<String, Object>> resources parameter unchanged.
- audio (PR #290): add the legacy_2x audio.live package (QwenLiveConversation
  WebSocket session with single-connect lifecycle, connection/session config,
  client/responses delegation, byte[] audio input, unified onError with
  optional ordered async dispatch, close/cancel/awaitSessionClosed), reading a
  dedicated DASHSCOPE_WEBSOCKET_QWEN_LIVE_BASE_URL env override; voice
  enrollment now accepts a base64 audio data URI as an alternative to url
  (createVoiceWithAudio / updateVoiceWithAudio).

agentstudio code lands in the shared applications.agentstudio package; the
Qwen Live 2.x SDK is quarantined under legacy_2x.audio.live with @deprecated
markers and a frozen package-info.

Ported from dashscope-sdk-java PR #288 and PR #290, without the version bump.
lzsweb pushed a commit that referenced this pull request Nov 25, 2026
…nline

Bring two upstream github/main features into the 3.0 layout:

- agentstudio (PR #288): PerToolConfig gains params (e.g.
  knowledge_application_id for the search_knowledgebases RAG tool);
  SessionResource echoes provider/entity_id/project_ids/profile_schema for
  bailian memory mounts and region/bucket/oss_path for oss mounts; Mount is
  a typed create-time input extending LinkedHashMap that fits the existing
  List<Map<String, Object>> resources parameter unchanged.
- audio (PR #290): add the legacy_2x audio.live package (QwenLiveConversation
  WebSocket session with single-connect lifecycle, connection/session config,
  client/responses delegation, byte[] audio input, unified onError with
  optional ordered async dispatch, close/cancel/awaitSessionClosed), reading a
  dedicated DASHSCOPE_WEBSOCKET_QWEN_LIVE_BASE_URL env override; voice
  enrollment now accepts a base64 audio data URI as an alternative to url
  (createVoiceWithAudio / updateVoiceWithAudio).

agentstudio code lands in the shared applications.agentstudio package; the
Qwen Live 2.x SDK is quarantined under legacy_2x.audio.live with @deprecated
markers and a frozen package-info.

Ported from dashscope-sdk-java PR #288 and PR #290, without the version bump.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants