Skip to content

Commit 7d692a3

Browse files
committed
fix(voice): update Qwen Realtime model, voice, and endpoint for intl service
Live-tested against DashScope international API: - Model: qwen3-omni-flash-realtime → qwen3.5-omni-flash-realtime (previous model ID did not exist on DashScope) - Default voice: Cherry → Tina (confirmed from session.created response on qwen3.5-omni-flash-realtime) - Default WS base: dashscope.aliyuncs.com → dashscope-intl.aliyuncs.com (international accounts use the -intl endpoint; China endpoint rejects international API keys; QWEN_REALTIME_WS_URL env var still overrides)
1 parent 1d082d0 commit 7d692a3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

hub/src/web/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function createGeminiProxyWebSocketHandler() {
123123

124124
// Qwen Realtime WebSocket proxy — bridges browser (no custom headers) to DashScope (requires Authorization header)
125125
function createQwenProxyWebSocketHandler() {
126-
const QWEN_WS_BASE = 'wss://dashscope.aliyuncs.com/api-ws/v1/realtime'
126+
const QWEN_WS_BASE = 'wss://dashscope-intl.aliyuncs.com/api-ws/v1/realtime'
127127
const upstreamMap = new WeakMap<ServerWebSocket<unknown>, WebSocket>()
128128
// Holds the hub-owned session.update payload until session.created arrives from DashScope.
129129
// Sending session.update before session.created violates the Qwen Realtime protocol ordering.

shared/src/voice.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ export function buildVoiceAgentConfig(): VoiceAgentConfig {
289289

290290
export type VoiceBackendType = 'elevenlabs' | 'gemini-live' | 'qwen-realtime'
291291

292-
export const QWEN_REALTIME_MODEL = 'qwen3-omni-flash-realtime'
293-
export const QWEN_REALTIME_VOICE = 'Cherry'
292+
export const QWEN_REALTIME_MODEL = 'qwen3.5-omni-flash-realtime'
293+
export const QWEN_REALTIME_VOICE = 'Tina'
294294

295295
export const DEFAULT_VOICE_BACKEND: VoiceBackendType = 'elevenlabs'
296296

0 commit comments

Comments
 (0)