qwen-audio-agent 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -5
- package/README_ZH.md +13 -5
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/cli/package.json +1 -1
- package/cli/src/arguments.mjs +4 -1
- package/cli/src/config-command.mjs +5 -6
- package/cli/src/launcher.mjs +13 -0
- package/config/frontend-agent/PROMPT.md +29 -26
- package/desktop/src/i18n.mjs +6 -0
- package/desktop/src/settings-config.mjs +34 -28
- package/desktop/src/settings-store.mjs +19 -28
- package/docs/architecture/deep-dive.md +103 -66
- package/docs/architecture/deep-dive.zh.md +73 -50
- package/docs/backends/configuration.md +21 -20
- package/docs/backends/configuration.zh.md +19 -17
- package/docs/backends/overview.md +14 -8
- package/docs/backends/overview.zh.md +11 -5
- package/docs/configuration/backend.md +16 -2
- package/docs/configuration/backend.zh.md +16 -2
- package/docs/configuration/frontend.md +59 -26
- package/docs/configuration/frontend.zh.md +58 -26
- package/docs/configuration.md +1 -1
- package/docs/configuration.zh.md +1 -1
- package/docs/contract.md +22 -2
- package/docs/contract.zh.md +18 -2
- package/docs/gateway-protocol.md +26 -0
- package/docs/gateway-protocol.zh.md +22 -0
- package/docs/gateway-webrtc-client.md +3 -3
- package/docs/gateway-webrtc-client.zh.md +3 -3
- package/docs/getting-started/install.md +1 -1
- package/docs/getting-started/install.zh.md +1 -1
- package/docs/getting-started/quickstart.md +2 -2
- package/docs/getting-started/quickstart.zh.md +2 -2
- package/docs/getting-started/webui.md +2 -0
- package/docs/getting-started/webui.zh.md +2 -0
- package/docs/guides/knowledge.md +8 -5
- package/docs/guides/knowledge.zh.md +4 -3
- package/docs/guides/tasks.md +63 -2
- package/docs/guides/tasks.zh.md +45 -1
- package/docs/guides/web-search.md +16 -1
- package/docs/guides/web-search.zh.md +14 -1
- package/docs/reference/backend-adapter-sdk.md +33 -2
- package/docs/reference/backend-adapter-sdk.zh.md +29 -2
- package/docs/reference/cli.md +3 -3
- package/docs/reference/cli.zh.md +3 -3
- package/docs/scenarios/lightrag.md +2 -2
- package/docs/scenarios/lightrag.zh.md +2 -2
- package/docs/scenarios/x-omni.md +5 -2
- package/docs/scenarios/x-omni.zh.md +5 -2
- package/docs/voice-agent-architecture-presentation.zh.md +34 -37
- package/docs/voice-frontends/custom-provider.md +6 -3
- package/docs/voice-frontends/custom-provider.zh.md +6 -3
- package/docs/voice-frontends/google-live.md +7 -5
- package/docs/voice-frontends/google-live.zh.md +7 -5
- package/docs/voice-frontends/gpt-live.md +7 -5
- package/docs/voice-frontends/gpt-live.zh.md +7 -5
- package/docs/voice-frontends/minicpm-o.md +8 -4
- package/docs/voice-frontends/minicpm-o.zh.md +7 -4
- package/docs/voice-frontends/qwen-audio-realtime.md +39 -14
- package/docs/voice-frontends/qwen-audio-realtime.zh.md +32 -11
- package/docs/voice-frontends/qwen-omni-realtime.md +11 -8
- package/docs/voice-frontends/qwen-omni-realtime.zh.md +11 -8
- package/docs/voice-frontends/speech-to-speech.md +8 -4
- package/docs/voice-frontends/speech-to-speech.zh.md +7 -3
- package/docs/voice-frontends/stepfun.md +7 -4
- package/docs/voice-frontends/stepfun.zh.md +7 -4
- package/examples/webrtc/start.mjs +2 -1
- package/package.json +22 -14
- package/scripts/audit-dependencies.mjs +3 -25
- package/scripts/electron-smoke.mjs +5 -5
- package/scripts/release-check +13 -21
- package/scripts/runtime/claude-code-acp.mjs +5 -5
- package/scripts/runtime/codex-acp.mjs +1 -1
- package/scripts/runtime/openclaw.mjs +3 -2
- package/scripts/runtime/opencode.mjs +2 -10
- package/scripts/runtime/pi-acp.mjs +1 -1
- package/scripts/verify-package.mjs +0 -2
- package/server/package.json +4 -4
- package/server/src/app/gateway-application.mjs +3 -0
- package/server/src/app/gateway-http-routes.mjs +3 -0
- package/server/src/app/session-conversation-history.mjs +9 -1
- package/server/src/backend/adapters/a2a/backend-adapter.mjs +32 -26
- package/server/src/backend/adapters/acp/backend-adapter.mjs +710 -263
- package/server/src/backend/adapters/acp/coordinator-contract.mjs +2 -13
- package/server/src/backend/adapters/acp/coordinator-instructions.mjs +29 -8
- package/server/src/backend/adapters/acp/coordinator-queue.mjs +58 -0
- package/server/src/backend/adapters/acp/drivers/codex.mjs +1 -1
- package/server/src/backend/adapters/acp/drivers/deepseek-harness.mjs +12 -36
- package/server/src/backend/adapters/acp/drivers/openclaw.mjs +1 -2
- package/server/src/backend/adapters/acp/input-broker.mjs +2 -0
- package/server/src/backend/adapters/acp/process-client.mjs +117 -17
- package/server/src/backend/adapters/acp/session-configuration.mjs +2 -19
- package/server/src/backend/adapters/acp/session-registry.mjs +9 -0
- package/server/src/backend/adapters/acp/session-tools.mjs +1 -1
- package/server/src/backend/adapters/acp/turn-updates.mjs +188 -0
- package/server/src/backend/adapters/acp/work-continuation.mjs +48 -0
- package/server/src/backend/adapters/agent-client.mjs +24 -1
- package/server/src/backend/adapters/llm/backend-adapter.mjs +393 -0
- package/server/src/backend/adapters/muse/backend-adapter.mjs +2 -0
- package/server/src/backend/availability.mjs +12 -3
- package/server/src/backend/backend-adapter-sdk.mjs +3 -0
- package/server/src/backend/backend-port.mjs +13 -0
- package/server/src/backend/backend-work-runtime.mjs +23 -0
- package/server/src/client/client-command-runtime.mjs +14 -0
- package/server/src/conversation/conversation-sync.mjs +26 -2
- package/server/src/conversation/frontend-notes.mjs +7 -5
- package/server/src/conversation/task-result-projector.mjs +1 -1
- package/server/src/core/backend-events.mjs +4 -0
- package/server/src/core/config.mjs +32 -55
- package/server/src/core/gateway-protocol.mjs +4 -1
- package/server/src/core/work-conversation-context.mjs +138 -0
- package/server/src/core/work-input-request.mjs +1 -0
- package/server/src/frontend/frontend-tools.mjs +6 -6
- package/server/src/frontend/retrieval/providers/factory.mjs +10 -1
- package/server/src/frontend/retrieval/providers/mcp.mjs +13 -2
- package/server/src/frontend/tools/agent-task-runtime.mjs +97 -95
- package/server/src/frontend/tools/features/agent-task-tools.mjs +23 -42
- package/server/src/frontend/tools/frontend-tool-context.mjs +2 -2
- package/server/src/frontend/tools/spawn-thinking-tool.mjs +2 -2
- package/server/src/frontend/tools/tool-call-handler.mjs +112 -68
- package/server/src/knowledge/providers/local/library.mjs +26 -6
- package/server/src/knowledge/providers/local/provider.mjs +25 -6
- package/server/src/memory/providers/markdown/context-store.mjs +21 -10
- package/server/src/orchestration/session-task-coordinator.mjs +9 -2
- package/server/src/orchestration/task-operations.mjs +50 -10
- package/server/src/orchestration/task-updates.mjs +81 -0
- package/server/src/task/reminder-scheduler.mjs +5 -1
- package/server/src/task/task-manager.mjs +72 -15
- package/server/src/task/task-recovery.mjs +12 -2
- package/server/src/task/task-scheduler.mjs +5 -5
- package/server/src/task/task-state.mjs +13 -0
- package/server/src/transport/gateway-client-transport.mjs +16 -0
- package/server/src/voice/announcement/announcement-manager.mjs +3 -0
- package/server/src/voice/providers/dashscope.mjs +34 -30
- package/server/src/voice/providers/doubao-seeduplex.mjs +13 -9
- package/server/src/voice/providers/google-live.mjs +18 -13
- package/server/src/voice/providers/gpt-live.mjs +13 -10
- package/server/src/voice/providers/minicpm-o.mjs +9 -7
- package/server/src/voice/providers/registry.mjs +2 -2
- package/server/src/voice/providers/runtime-configuration.mjs +23 -0
- package/server/src/voice/providers/s2s.mjs +9 -7
- package/server/src/voice/providers/stepfun.mjs +13 -10
- package/server/src/voice/realtime-input-runtime.mjs +2 -0
- package/server/src/voice/realtime-presentation-runtime.mjs +90 -23
- package/server/src/voice/realtime-provider.mjs +26 -9
- package/server/src/voice/realtime-session-runtime.mjs +79 -23
- package/server/src/voice/realtime-task-presentation.mjs +2 -0
- package/shared/backend/catalog.mjs +44 -45
- package/shared/backend/install.mjs +15 -17
- package/shared/backend/runtime-package.mjs +3 -3
- package/shared/backend/setup.mjs +59 -113
- package/shared/gateway/client-sdk.mjs +6 -1
- package/shared/gateway/setup.mjs +13 -1
- package/shared/protocol/gateway-client-protocol.mjs +14 -0
- package/shared/protocol/gateway-events.mjs +8 -1
- package/shared/realtime-legacy-environment.mjs +52 -0
- package/shared/realtime-model-catalog.mjs +66 -194
- package/shared/realtime-models/README.md +25 -0
- package/shared/realtime-models/dashscope.mjs +46 -0
- package/shared/realtime-models/doubao-seeduplex.mjs +12 -0
- package/shared/realtime-models/google-live.mjs +10 -0
- package/shared/realtime-models/gpt-live.mjs +10 -0
- package/shared/realtime-models/profile.mjs +35 -0
- package/shared/realtime-models/stepfun.mjs +10 -0
- package/shared/realtime-provider-catalog.mjs +16 -5
- package/shared/realtime-provider-definitions.mjs +99 -231
- package/shared/runtime-environment.mjs +23 -30
- package/shared/skill-library.mjs +49 -13
- package/shared/web-search-configuration.mjs +13 -2
- package/tui/package.json +1 -1
- package/web/dist/assets/index-8erKDCr2.css +1 -0
- package/web/dist/assets/index-Cs4hYWbS.js +96 -0
- package/web/dist/index.html +2 -2
- package/config/backends/deepseek-harness/cordis.yml +0 -59
- package/scripts/runtime/deepseek-harness-acp.mjs +0 -59
- package/web/dist/assets/index-BRaiI-dW.js +0 -91
- package/web/dist/assets/index-D9k8R2JY.css +0 -1
|
@@ -57,8 +57,8 @@ OpenClaw 私有 `sessions.patch` 接口修改模型。
|
|
|
57
57
|
## OpenCode
|
|
58
58
|
|
|
59
59
|
Gateway 通过 `opencode acp` 与它交互,并管理用于打开原生 Session
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
界面的本地服务。优先使用本机安装;CLI 在缺失且已配置百炼 Key 和后台模型时
|
|
61
|
+
可通过 `npx` 下载最新包,桌面版需点击安装。`OPENCODE_BASE_URL` 是该本地 Session UI 服务的地址,并不是可供
|
|
62
62
|
qwen-audio-agent 连接的远程 ACP 执行地址:
|
|
63
63
|
|
|
64
64
|
```dotenv
|
|
@@ -249,7 +249,7 @@ CODEBUDDY_MODEL_URL=https://dashscope.aliyuncs.com/compatible-mode/v1/chat/compl
|
|
|
249
249
|
Codex([openai/codex](https://github.com/openai/codex))通过 ACP 项目维护的
|
|
250
250
|
[codex-acp](https://github.com/agentclientprotocol/codex-acp) 接入。启动脚本优先
|
|
251
251
|
绑定用户环境中已安装的 `codex`,并优先使用已安装的 `codex-acp`;缺少 Adapter
|
|
252
|
-
|
|
252
|
+
时 CLI 通过 `npx` 使用最新版本,桌面版提供单独的“安装适配器”按钮。
|
|
253
253
|
|
|
254
254
|
```dotenv
|
|
255
255
|
AGENT_PROTOCOL=codex
|
|
@@ -272,10 +272,11 @@ CODEX_BASE_URL=
|
|
|
272
272
|
|
|
273
273
|
## Claude Code
|
|
274
274
|
|
|
275
|
-
Claude Code 通过
|
|
276
|
-
[@
|
|
277
|
-
|
|
278
|
-
|
|
275
|
+
Claude Code 通过
|
|
276
|
+
[@agentclientprotocol/claude-agent-acp](https://github.com/agentclientprotocol/claude-agent-acp)
|
|
277
|
+
接入,它是 Zed 已弃用的 `@zed-industries/claude-code-acp` 的后继维护版本。启动脚本优先使用已安装的 `claude-agent-acp`;缺失时 CLI 可通过 `npx`
|
|
278
|
+
使用最新版本,桌面版提供“安装适配器”按钮,不重装已有的 Claude Code。
|
|
279
|
+
Claude Code 本体仍需完成认证。
|
|
279
280
|
|
|
280
281
|
```dotenv
|
|
281
282
|
AGENT_PROTOCOL=claude
|
|
@@ -288,7 +289,7 @@ QWEN_AUDIO_AGENT_BACKEND_PERMISSION_MODE=native
|
|
|
288
289
|
|
|
289
290
|
```dotenv
|
|
290
291
|
CLAUDE_CODE_ACP_BIN=
|
|
291
|
-
CLAUDE_CODE_ACP_PACKAGE=@
|
|
292
|
+
CLAUDE_CODE_ACP_PACKAGE=@agentclientprotocol/claude-agent-acp@0.93.0
|
|
292
293
|
CLAUDE_CODE_ACP_RUNTIME=auto
|
|
293
294
|
CLAUDE_WORKSPACE=
|
|
294
295
|
CLAUDE_CODE_EXECUTABLE=
|
|
@@ -300,7 +301,7 @@ CLAUDE_CONFIG_DIR=
|
|
|
300
301
|
|
|
301
302
|
## DeepSeek
|
|
302
303
|
|
|
303
|
-
|
|
304
|
+
使用本机 DeepSeek CLI 的原生 `dsh --profile acp` 入口。已有兼容版本无需重装;缺失时安装,再在 DeepSeek 自身设置中配置凭据:
|
|
304
305
|
|
|
305
306
|
```bash
|
|
306
307
|
qwenaudio install deepseek
|
|
@@ -311,12 +312,12 @@ dsh web
|
|
|
311
312
|
|
|
312
313
|
```dotenv
|
|
313
314
|
AGENT_PROTOCOL=deepseek
|
|
314
|
-
|
|
315
|
+
QWEN_AUDIO_AGENT_BACKEND_MODEL=
|
|
315
316
|
```
|
|
316
317
|
|
|
317
|
-
也可通过 `DEEPSEEK_API_KEY`
|
|
318
|
+
也可通过 `DEEPSEEK_API_KEY` 提供凭据。后台模型留空时,保留用户 ACP profile 的配置;显式指定时通过标准 ACP 模型设置接口覆盖,后端不接受时会报错。旧的 `DEEPSEEK_HARNESS_MODEL` 仅在未设置通用模型时作为兼容别名。
|
|
318
319
|
|
|
319
|
-
|
|
320
|
+
支持普通工作、MCP 注入、权限确认、取消与结果回传;暂不提供 Gateway 独立任务委派或原生 Session 历史恢复。完整能力随 Harness 版本变化。
|
|
320
321
|
|
|
321
322
|
## Pi
|
|
322
323
|
|
|
@@ -386,7 +387,7 @@ qwenaudio install muse
|
|
|
386
387
|
muse
|
|
387
388
|
```
|
|
388
389
|
|
|
389
|
-
Adapter 代码随框架发布,但 `@muse-code/sdk
|
|
390
|
+
Adapter 代码随框架发布,但 `@muse-code/sdk` **不属于默认依赖**。
|
|
390
391
|
只有显式运行上述安装命令或点击桌面版安装按钮时,SDK 才会安装到
|
|
391
392
|
`<QWAUDIO_DATA_DIR>/backends/muse/runtime`(默认
|
|
392
393
|
`~/.config/qwaudio/data/backends/muse/runtime`)。已有 Muse 本体会跳过重装。
|
|
@@ -429,7 +430,7 @@ Linux 文件系统。Muse 本体需先在 WSL 内安装并完成认证;配置
|
|
|
429
430
|
预配置的 `allowAll` 模式创建 Session,仅应在可信工作区启用。Gateway 的单任务/
|
|
430
431
|
当前会话授权只选择 Muse 的单次允许选项,不会创建服务商侧持久授权规则。
|
|
431
432
|
|
|
432
|
-
|
|
433
|
+
安装操作会补装最新 Muse SDK,已有 SDK 不会被自动替换。当前不会跨 Gateway 重启保存 Muse
|
|
433
434
|
Session ID、注入 Gateway MCP Server,也不会读取 MSP `outputRef` 指向的完整字节;
|
|
434
435
|
文件改动仍保留在配置的工作区,最终文字会正常返回。当前 Adapter 只把内联图片
|
|
435
436
|
作为 MSP 附件发送,其他附件类型会明确拒绝。
|
|
@@ -444,7 +445,8 @@ OpenCode 和 OpenClaw 使用一致的用户环境优先顺序:
|
|
|
444
445
|
1. `OPENCODE_BIN` / `OPENCLAW_BIN` 明确指定的可执行文件。
|
|
445
446
|
2. `OPENCODE_SOURCE_DIR` / `OPENCLAW_SOURCE_DIR` 明确指定的源码目录。
|
|
446
447
|
3. PATH 中用户已经安装的 `opencode` / `openclaw`。
|
|
447
|
-
4.
|
|
448
|
+
4. OpenClaw 的本机 Bundle(显式指定 `OPENCLAW_BUNDLE_BIN` 时优先于 PATH)。
|
|
449
|
+
5. 未安装且配置百炼 Key 和后台模型时,CLI 可通过 `npx` 使用最新 npm 包;桌面版需点击安装。
|
|
448
450
|
|
|
449
451
|
源码目录只在用户明确配置后使用,不再推测相邻项目目录。需要强制选择某种启动
|
|
450
452
|
方式时可配置:
|
|
@@ -462,8 +464,8 @@ OPENCODE_PACKAGE=opencode-ai@1.18.5
|
|
|
462
464
|
OPENCLAW_PACKAGE=openclaw@2026.6.33
|
|
463
465
|
```
|
|
464
466
|
|
|
465
|
-
OpenCode ACP 接入当前要求 OpenCode `1.18.0`
|
|
466
|
-
|
|
467
|
+
OpenCode ACP 接入当前要求 OpenCode `1.18.0` 或更高版本。发现更旧版本时会提示
|
|
468
|
+
用户升级,不会自动替换已有安装或悄悄切换到另一份下载的运行时。
|
|
467
469
|
最低版本可由 `OPENCODE_MIN_VERSION` 覆盖,用于验证其他兼容版本。
|
|
468
470
|
|
|
469
471
|
qwen-audio-agent 启动的 OpenCode 默认继承用户原有的全局配置(通常是
|
|
@@ -7,6 +7,7 @@ The Backend Agent handles tasks that require tools, file operations, or sustaine
|
|
|
7
7
|
| Backend Agent | Integration Method | Setup Requirements | Skills | Recommendation |
|
|
8
8
|
| --- | --- | --- | --- | --- |
|
|
9
9
|
| None | N/A | Frontend-only mode, no configuration needed | — | ★★★★★ |
|
|
10
|
+
| Bare LLM | Built-in Chat Completions | OpenAI-compatible URL, API key, and model | None (text only) | Experimental |
|
|
10
11
|
| Qwen Code | Native ACP | Supports one-click install, requires user configuration | `~/.qwen/skills/` | ★★★★★ |
|
|
11
12
|
| OpenCode | Native ACP | Supports one-click install and Bailian configuration | `~/.config/opencode/skills/` | ★★★★★ |
|
|
12
13
|
| OpenClaw | Built-in ACP bridge | Supports one-click install and Bailian configuration | `~/.openclaw/skills/` | ★★★★★ |
|
|
@@ -42,14 +43,17 @@ qwenaudio install muse
|
|
|
42
43
|
|
|
43
44
|
Before installation, a detection step runs to **only fill in missing components**: it installs the backend core and, where required, its adapter. Existing components are not reinstalled. Installation does not mean the backend is configured: complete any login and configuration required by the selected backend. In the desktop settings page's "Backend Agent" list, an "Install" button appears at the end of rows for uninstalled backends that support one-click install, using the same installation logic as the CLI.
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
`
|
|
46
|
+
Existing local Agents and their configuration take priority. Installation only
|
|
47
|
+
adds missing hosts or adapters, using the official `latest` tag for npm packages.
|
|
48
|
+
It does not upgrade or downgrade existing installations. When only the ACP adapter
|
|
49
|
+
is missing, the desktop button reads “Install adapter”. Minimum compatibility
|
|
50
|
+
checks remain in place; incompatible installations require a user-managed upgrade.
|
|
51
|
+
|
|
52
|
+
DeepSeek uses the official CLI's `dsh --profile acp` entry point (0.1.5 series or
|
|
53
|
+
newer), without a separate ACP demo. Run `dsh web` to configure credentials.
|
|
54
|
+
Without a backend model override, the ACP profile keeps its own model settings;
|
|
55
|
+
explicit overrides use the standard ACP interface. Gateway-managed independent
|
|
56
|
+
task delegation and native Session history restoration are not provided yet.
|
|
53
57
|
|
|
54
58
|
View currently available backend agents:
|
|
55
59
|
|
|
@@ -84,6 +88,8 @@ ACP_ARGS=["--acp"]
|
|
|
84
88
|
|
|
85
89
|
The command, arguments, display name, and working directory can be configured via `ACP_COMMAND`, `ACP_ARGS`, `ACP_LABEL`, and `ACP_WORKSPACE` respectively. The generic ACP entry does not provide one-click install; please install it yourself.
|
|
86
90
|
|
|
91
|
+
For a lightweight LLM control, use `AGENT_PROTOCOL=llm`. Each Task makes one stateless text request without forwarding frontend business tools or conversation history. See [Bare LLM Backend](../configuration/backend.md#bare-llm-backend) for configuration and capability boundaries.
|
|
92
|
+
|
|
87
93
|
## Permission Modes
|
|
88
94
|
|
|
89
95
|
`QWEN_AUDIO_AGENT_BACKEND_PERMISSION_MODE` can be set to:
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
| 后台 Agent | 接入方式 | 接入准备 | Skills | 推荐指数 |
|
|
9
9
|
| --- | --- | --- | --- | --- |
|
|
10
10
|
| 无 | N/A | 仅前台模式,无需配置 | — | ★★★★★ |
|
|
11
|
+
| 裸 LLM | 内置 Chat Completions | OpenAI-compatible URL、API Key 与模型 | 无(纯文本) | 实验性 |
|
|
11
12
|
| Qwen Code | 原生 ACP | 支持一键安装,需用户配置 | `~/.qwen/skills/` | ★★★★★ |
|
|
12
13
|
| OpenCode | 原生 ACP | 支持一键安装和百炼配置 | `~/.config/opencode/skills/` | ★★★★★ |
|
|
13
14
|
| OpenClaw | 内置 ACP 桥接 | 支持一键安装和百炼配置 | `~/.openclaw/skills/` | ★★★★★ |
|
|
@@ -46,11 +47,14 @@ qwenaudio install muse
|
|
|
46
47
|
的“后台 Agent”列表中,未安装且支持一键安装的后台行尾会显示“安装”按钮,与 CLI
|
|
47
48
|
使用同一份安装逻辑。
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
`
|
|
50
|
+
优先复用本机已有的 Agent 与配置。安装操作只补齐缺失的本体或适配器,npm 包默认
|
|
51
|
+
使用官方 `latest`,不会自动升级或降级已有安装。仅缺 ACP 适配器时,桌面版显示
|
|
52
|
+
“安装适配器”。最低兼容版本检查仍然保留,不兼容时需用户自行升级。
|
|
53
|
+
|
|
54
|
+
DeepSeek 使用官方 CLI 的 `dsh --profile acp` 入口(需 0.1.5 系列或更新版本),
|
|
55
|
+
不再需要单独安装 ACP demo。运行 `dsh web` 配置凭据;未指定后台模型时沿用 ACP
|
|
56
|
+
profile 的配置,指定时通过标准 ACP 接口设置。当前不提供 Gateway 独立任务委派或
|
|
57
|
+
原生 Session 历史恢复。
|
|
54
58
|
|
|
55
59
|
查看当前可用的后台 Agent:
|
|
56
60
|
|
|
@@ -91,6 +95,8 @@ ACP_ARGS=["--acp"]
|
|
|
91
95
|
命令、参数、显示名称和工作目录可分别通过 `ACP_COMMAND`、`ACP_ARGS`、
|
|
92
96
|
`ACP_LABEL` 和 `ACP_WORKSPACE` 配置。通用 ACP 入口不提供一键安装,请自行安装。
|
|
93
97
|
|
|
98
|
+
需要轻量 LLM 对照组时使用 `AGENT_PROTOCOL=llm`;每个 Task 为单次无状态文本调用,不继承前台业务工具或会话历史。配置方法与能力边界见[裸 LLM 后台](../configuration/backend.zh.md#裸-llm-后台)。
|
|
99
|
+
|
|
94
100
|
## 权限模式
|
|
95
101
|
|
|
96
102
|
`QWEN_AUDIO_AGENT_BACKEND_PERMISSION_MODE` 可设为:
|
|
@@ -29,6 +29,20 @@ Complete authentication and model setup through the backend's own interface. Des
|
|
|
29
29
|
|
|
30
30
|
The generic `acp` entry has no installer. Set `ACP_COMMAND` and `ACP_ARGS` yourself. See [Backend-Specific Settings](../backends/configuration.md).
|
|
31
31
|
|
|
32
|
+
### Bare LLM Backend
|
|
33
|
+
|
|
34
|
+
Use the built-in `llm` backend to pair the voice frontend with an OpenAI-compatible text model. Each Task sends one stateless request containing only an optional system prompt and its current instruction. It does not forward tool schemas, conversation history, workspace, or Gateway metadata.
|
|
35
|
+
|
|
36
|
+
```dotenv
|
|
37
|
+
AGENT_PROTOCOL=llm
|
|
38
|
+
QWEN_AUDIO_AGENT_BACKEND_MODEL=qwen3.7-plus
|
|
39
|
+
QWEN_AUDIO_AGENT_LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
|
|
40
|
+
QWEN_AUDIO_AGENT_LLM_API_KEY=your-key
|
|
41
|
+
# QWEN_AUDIO_AGENT_LLM_SYSTEM_PROMPT=Answer the user's question directly.
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
When the dedicated key is empty, the backend tries `DASHSCOPE_API_KEY` and then `OPENAI_API_KEY`. When the base URL is empty, it tries `OPENAI_BASE_URL`, then `DASHSCOPE_BASE_URL`, and finally selects the OpenAI or DashScope default from the available credential. The backend supports Task cancellation, but not function calling, permission requests, follow-up input, native workspace tools, or cross-Task history. It remains a lightweight LLM adapter rather than a full Agent replacement.
|
|
45
|
+
|
|
32
46
|
## Model Selection
|
|
33
47
|
|
|
34
48
|
For ACP backends supporting standard model configuration, when `QWEN_AUDIO_AGENT_BACKEND_MODEL` is empty:
|
|
@@ -38,9 +52,9 @@ For ACP backends supporting standard model configuration, when `QWEN_AUDIO_AGENT
|
|
|
38
52
|
|
|
39
53
|
An explicit value uses only standard ACP `configOptions` with `category: model` and `session/set_config_option`. Use a model ID offered by the backend. Unsupported overrides, failed settings, or unconfirmed results fail explicitly rather than silently falling back.
|
|
40
54
|
|
|
41
|
-
DeepSeek
|
|
55
|
+
DeepSeek also uses standard ACP model configuration; an empty setting preserves its ACP profile configuration. See [DeepSeek](../backends/configuration.md#deepseek).
|
|
42
56
|
|
|
43
|
-
Overrides apply to coordinator, new, and restored project Sessions. Non-ACP adapters implement their own declared capability; Muse Code uses MSP `modelId`,
|
|
57
|
+
Overrides apply to coordinator, new, and restored project Sessions. Non-ACP adapters implement their own declared capability; Muse Code uses MSP `modelId`, while the bare LLM passes the value directly as the Chat Completions `model`.
|
|
44
58
|
|
|
45
59
|
### Managed OpenCode / OpenClaw Setup
|
|
46
60
|
|
|
@@ -29,6 +29,20 @@ qwenaudio install qwen
|
|
|
29
29
|
|
|
30
30
|
通用 `acp` 入口不提供安装器,需自行设置 `ACP_COMMAND` 与 `ACP_ARGS`。后台独立参数见[各后台详细配置](../backends/configuration.zh.md)。
|
|
31
31
|
|
|
32
|
+
### 裸 LLM 后台
|
|
33
|
+
|
|
34
|
+
需要把语音前台与 OpenAI-compatible 文本模型组合时,可选择内置 `llm` 后台。每个 Task 仅携带可选 system prompt 与当前 Task instruction,发起一次无状态文本请求;不传递工具 schema、会话历史、工作区或 Gateway 元数据。
|
|
35
|
+
|
|
36
|
+
```dotenv
|
|
37
|
+
AGENT_PROTOCOL=llm
|
|
38
|
+
QWEN_AUDIO_AGENT_BACKEND_MODEL=qwen3.7-plus
|
|
39
|
+
QWEN_AUDIO_AGENT_LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
|
|
40
|
+
QWEN_AUDIO_AGENT_LLM_API_KEY=your-key
|
|
41
|
+
# QWEN_AUDIO_AGENT_LLM_SYSTEM_PROMPT=请直接回答用户的问题。
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
API Key 未单独填写时依次复用 `DASHSCOPE_API_KEY`、`OPENAI_API_KEY`;Base URL 未填写时复用 `OPENAI_BASE_URL`、`DASHSCOPE_BASE_URL`,最后按凭据选择 OpenAI 或 DashScope 默认地址。该后端支持 Task 取消,但不支持 function calling、权限请求、补充输入、后台原生工作区工具或跨 Task 历史;它仍是轻量 LLM Adapter,不等同于完整 Agent。
|
|
45
|
+
|
|
32
46
|
## 模型选择
|
|
33
47
|
|
|
34
48
|
对支持标准模型配置的 ACP 后台,`QWEN_AUDIO_AGENT_BACKEND_MODEL` 留空时:
|
|
@@ -38,9 +52,9 @@ qwenaudio install qwen
|
|
|
38
52
|
|
|
39
53
|
显式填写时,ACP 后台只通过标准 `configOptions`(`category: model`)与 `session/set_config_option` 覆盖。模型 ID 必须来自后台提供的选项;不支持、设置失败或无法确认生效时会明确报错,不静默回退。
|
|
40
54
|
|
|
41
|
-
DeepSeek
|
|
55
|
+
DeepSeek 同样通过标准 ACP 接口设置模型,留空时保留自身 ACP profile 配置,见 [DeepSeek](../backends/configuration.zh.md#deepseek)。
|
|
42
56
|
|
|
43
|
-
覆盖应用于协调、新建和恢复的项目 Session。非 ACP 适配器按自己的公开能力实现;例如 Muse Code 使用 MSP `modelId
|
|
57
|
+
覆盖应用于协调、新建和恢复的项目 Session。非 ACP 适配器按自己的公开能力实现;例如 Muse Code 使用 MSP `modelId`,裸 LLM 直接把该值作为 Chat Completions 的 `model`。
|
|
44
58
|
|
|
45
59
|
### OpenCode / OpenClaw 一键托管
|
|
46
60
|
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
The voice frontend handles realtime conversation; the backend Agent executes work. You can choose them independently.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Keep provider selection, credentials, endpoints, and the selected model in the `config.env` shown by `qwenaudio config`. Desktop's voice frontend settings edit these connection settings and select from the framework's supported models. Model definitions and adaptation parameters are maintained in code.
|
|
6
6
|
|
|
7
7
|
## Choose a Service
|
|
8
8
|
|
|
9
9
|
| Service | Provider value | Required configuration or preparation | Guide |
|
|
10
10
|
| --- | --- | --- | --- |
|
|
11
|
-
| Qwen Audio / Omni 3.5 / Omni 3.8 | `dashscope` (default) |
|
|
12
|
-
| StepAudio 3 | `stepfun` |
|
|
13
|
-
| OpenAI Realtime | `gpt-live` |
|
|
14
|
-
| Gemini Live | `google-live` |
|
|
15
|
-
| Doubao Seeduplex | `doubao-seeduplex` |
|
|
11
|
+
| Qwen Audio / Omni 3.5 / Omni 3.8 | `dashscope` (default) | DashScope API key; Omni 3.8 also requires a workspace-specific URL | [Audio](../voice-frontends/qwen-audio-realtime.md) / [Omni vision](../voice-frontends/qwen-omni-realtime.md) |
|
|
12
|
+
| StepAudio 3 | `stepfun` | StepFun API key | [StepFun](../voice-frontends/stepfun.md) |
|
|
13
|
+
| OpenAI Realtime | `gpt-live` | OpenAI API key | [GPT-Live](../voice-frontends/gpt-live.md) |
|
|
14
|
+
| Gemini Live | `google-live` | Google API key | [Google Live](../voice-frontends/google-live.md) |
|
|
15
|
+
| Doubao Seeduplex | `doubao-seeduplex` | Doubao API key | Configure its model, voice, and endpoint below |
|
|
16
16
|
| Hugging Face speech-to-speech | `speech-to-speech` | Start the service; default: `ws://127.0.0.1:8765/v1/realtime` | [Local model pipeline](../voice-frontends/speech-to-speech.md) |
|
|
17
17
|
| MiniCPM-o 4.5 | `minicpm-o` | Start the service; default: `ws://127.0.0.1:8006/v1/realtime?mode=audio` | [Audio/video modes and limits](../voice-frontends/minicpm-o.md) |
|
|
18
18
|
|
|
@@ -20,38 +20,55 @@ For the default frontend:
|
|
|
20
20
|
|
|
21
21
|
```dotenv
|
|
22
22
|
QWEN_AUDIO_REALTIME_PROVIDER=dashscope
|
|
23
|
-
|
|
24
|
-
QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.
|
|
23
|
+
QWEN_AUDIO_REALTIME_API_KEY=your-key
|
|
24
|
+
QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.1-realtime-plus
|
|
25
|
+
QWEN_AUDIO_REALTIME_URL=
|
|
26
|
+
QWEN_AUDIO_REALTIME_VOICE=
|
|
25
27
|
```
|
|
26
28
|
|
|
27
29
|
To switch to StepFun, select it and supply its own credentials:
|
|
28
30
|
|
|
29
31
|
```dotenv
|
|
30
32
|
QWEN_AUDIO_REALTIME_PROVIDER=stepfun
|
|
31
|
-
|
|
33
|
+
QWEN_AUDIO_REALTIME_API_KEY=your-stepfun-key
|
|
34
|
+
QWEN_AUDIO_REALTIME_MODEL=stepaudio-3-realtime-preview
|
|
35
|
+
QWEN_AUDIO_REALTIME_URL=
|
|
36
|
+
QWEN_AUDIO_REALTIME_VOICE=
|
|
32
37
|
```
|
|
33
38
|
|
|
34
|
-
|
|
39
|
+
All frontends use the same five fields. They describe one active connection, not a collection of saved provider profiles. When switching providers, replace the key and model, and clear or replace the URL and voice. Frontend credentials are separate from backend, search, and memory-service credentials.
|
|
35
40
|
|
|
36
|
-
##
|
|
41
|
+
## Connection Fields
|
|
37
42
|
|
|
38
|
-
|
|
|
39
|
-
| --- | --- |
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
| Field | Meaning |
|
|
44
|
+
| --- | --- |
|
|
45
|
+
| `QWEN_AUDIO_REALTIME_PROVIDER` | Service to connect to; defaults to `dashscope` |
|
|
46
|
+
| `QWEN_AUDIO_REALTIME_MODEL` | Model ID; empty uses the provider default |
|
|
47
|
+
| `QWEN_AUDIO_REALTIME_API_KEY` | Credential for the selected service |
|
|
48
|
+
| `QWEN_AUDIO_REALTIME_URL` | WebSocket endpoint; empty uses the provider default |
|
|
49
|
+
| `QWEN_AUDIO_REALTIME_VOICE` | Voice override; empty uses the model or service default |
|
|
50
|
+
|
|
51
|
+
Provider defaults:
|
|
52
|
+
|
|
53
|
+
| Provider | Default model | Default endpoint |
|
|
54
|
+
| --- | --- | --- |
|
|
55
|
+
| `dashscope` | `qwen-audio-3.1-realtime-plus` | `wss://dashscope.aliyuncs.com/api-ws/v1/realtime` |
|
|
56
|
+
| `stepfun` | `stepaudio-3-realtime-preview` | `wss://api.stepfun.com/v1/realtime` |
|
|
57
|
+
| `gpt-live` | `gpt-realtime-2.1` | `wss://api.openai.com/v1/realtime` |
|
|
58
|
+
| `google-live` | `gemini-3.8-live` | `wss://generativelanguage.googleapis.com/ws/google.ai.generativelanguage.v1beta.GenerativeService.BidiGenerateContent` |
|
|
59
|
+
| `doubao-seeduplex` | `1.2.6.1` | `wss://openspeech.bytedance.com/api/v3/duplex/realtime/dialogue` |
|
|
60
|
+
| `speech-to-speech` | Set upstream | `ws://127.0.0.1:8765/v1/realtime` |
|
|
61
|
+
| `minicpm-o` | Set upstream | `ws://127.0.0.1:8006/v1/realtime?mode=audio` |
|
|
62
|
+
|
|
63
|
+
For speech-to-speech and MiniCPM-o, leave model and voice empty: the upstream service controls them. Set the API key only if that service requires a Bearer token. Qwen3.8 Omni requires an explicit [workspace-specific URL](../voice-frontends/qwen-omni-realtime.md#setup), not the public DashScope default. Uniform configuration does not change each service's protocol or capability limits; the Provider adapter handles those differences.
|
|
49
64
|
|
|
50
65
|
Current built-in DashScope model profiles:
|
|
51
66
|
|
|
52
67
|
| Model ID | Realtime input |
|
|
53
68
|
| --- | --- |
|
|
54
|
-
| `qwen-audio-3.
|
|
69
|
+
| `qwen-audio-3.1-realtime-plus` (default) | Text, audio |
|
|
70
|
+
| `qwen-audio-3.1-realtime-flash` | Text, audio |
|
|
71
|
+
| `qwen-audio-3.0-realtime-plus` | Text, audio |
|
|
55
72
|
| `qwen-audio-3.0-realtime-flash` | Text, audio |
|
|
56
73
|
| `qwen3.5-omni-flash-realtime` | Text, audio, live visual frames |
|
|
57
74
|
| `qwen3.5-omni-plus-realtime` | Text, audio, live visual frames |
|
|
@@ -59,17 +76,31 @@ Current built-in DashScope model profiles:
|
|
|
59
76
|
|
|
60
77
|
All profiles support tool calls. Live vision also requires client and transport support; see [Visual Input](../guides/vision.md).
|
|
61
78
|
|
|
79
|
+
Audio 3.1 Plus / Flash use the existing `dashscope` provider and default to
|
|
80
|
+
`longanqian_v3.1`; Audio 3.0 Plus / Flash keep `longanqian`. An explicit
|
|
81
|
+
`QWEN_AUDIO_REALTIME_VOICE` must match the selected model. Audio models do not
|
|
82
|
+
support visual input. See the [Audio guide](../voice-frontends/qwen-audio-realtime.md)
|
|
83
|
+
for model switching and workspace endpoint overrides.
|
|
84
|
+
|
|
85
|
+
## Select a Supported Model
|
|
86
|
+
|
|
87
|
+
The model list is maintained by the framework. Desktop and `qwenaudio config show` use this same list; choose a model for the selected provider in Desktop or set `QWEN_AUDIO_REALTIME_MODEL`. Leave it empty to use the provider default. For example, with `dashscope` selected, use `qwen-audio-3.1-realtime-flash` to switch to the built-in 3.1 Flash model. The default remains 3.1 Plus.
|
|
88
|
+
|
|
89
|
+
An unsupported model ID is a configuration error. User configuration cannot add models, redefine existing models, or change their API bindings, capabilities, turn detection, or integration constraints. These are fixed by the framework's model support. The existing `QWEN_AUDIO_REALTIME_VOICE` and session-scoped voice overrides still work; choose a voice compatible with the selected model.
|
|
90
|
+
|
|
91
|
+
The list describes implemented support, not live service availability or account authorization. Check the account, region, endpoint, and voice for your chosen model, then apply and verify the connection below. Models behind speech-to-speech and MiniCPM-o remain configured in those external services.
|
|
92
|
+
|
|
62
93
|
## Apply and Verify
|
|
63
94
|
|
|
64
95
|
1. Click Apply in Desktop. For a terminal Gateway, stop and restart it. For an installed background service, run `qwenaudio gateway restart`.
|
|
65
96
|
2. Connect a client and check that the voice frontend is connected.
|
|
66
97
|
3. Speak and confirm that audio plays. If you need tools, also test search or a simple backend request.
|
|
67
98
|
|
|
68
|
-
To inspect the configured provider and supported
|
|
99
|
+
To inspect the configured provider and supported model list:
|
|
69
100
|
|
|
70
101
|
```bash
|
|
71
102
|
qwenaudio config show
|
|
72
|
-
qwenaudio config set --realtime-model qwen-audio-3.
|
|
103
|
+
qwenaudio config set --realtime-model qwen-audio-3.1-realtime-flash
|
|
73
104
|
```
|
|
74
105
|
|
|
75
106
|
`config set` changes the current provider's model; it neither switches providers nor restarts the Gateway. Remote clients use the remote Gateway's settings, not local model settings.
|
|
@@ -85,4 +116,6 @@ Configure frontend tools separately: [Search](../guides/web-search.md), [MCP](..
|
|
|
85
116
|
|
|
86
117
|
## Older Configuration
|
|
87
118
|
|
|
88
|
-
|
|
119
|
+
Provider-specific frontend variables are read only for compatibility. The five unified fields take precedence, including explicitly empty values. If an older file contains both unified model/voice fields and another provider's model/voice fields, put the selected provider's intended values in the unified fields. For Omni, move an existing `QWEN_OMNI_REALTIME_VOICE` value to `QWEN_AUDIO_REALTIME_VOICE`.
|
|
120
|
+
|
|
121
|
+
Only the active connection is saved; separate provider drafts are no longer persisted. Old variables are not automatically deleted because a backend Agent, search, or another module may still use them. Remove obsolete frontend-only overrides yourself after migration. See [configuration priority](../configuration.md#configuration-priority).
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
语音前台负责实时交流;后台 Agent 负责执行工作。二者可独立选择。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
供应商选择、凭据、服务地址和当前模型仍写入 `qwenaudio config` 显示的 `config.env`。桌面版“语音前台”设置修改这些连接信息,并从框架支持的模型中下拉选择。模型定义和适配参数由代码维护。
|
|
6
6
|
|
|
7
7
|
## 选择服务
|
|
8
8
|
|
|
9
9
|
| 服务 | Provider 值 | 必填或首次使用配置 | 使用说明 |
|
|
10
10
|
| --- | --- | --- | --- |
|
|
11
|
-
| Qwen Audio / Omni 3.5 / Omni 3.8 | `dashscope`(默认) |
|
|
12
|
-
| StepAudio 3 | `stepfun` |
|
|
13
|
-
| OpenAI Realtime | `gpt-live` |
|
|
14
|
-
| Gemini Live | `google-live` |
|
|
15
|
-
| 豆包 Seeduplex | `doubao-seeduplex` |
|
|
11
|
+
| Qwen Audio / Omni 3.5 / Omni 3.8 | `dashscope`(默认) | DashScope API Key;Omni 3.8 还需业务空间专属地址 | [Audio 语音](../voice-frontends/qwen-audio-realtime.zh.md) / [Omni 视觉](../voice-frontends/qwen-omni-realtime.zh.md) |
|
|
12
|
+
| StepAudio 3 | `stepfun` | StepFun API Key | [StepFun](../voice-frontends/stepfun.zh.md) |
|
|
13
|
+
| OpenAI Realtime | `gpt-live` | OpenAI API Key | [GPT-Live](../voice-frontends/gpt-live.zh.md) |
|
|
14
|
+
| Gemini Live | `google-live` | Google API Key | [Google Live](../voice-frontends/google-live.zh.md) |
|
|
15
|
+
| 豆包 Seeduplex | `doubao-seeduplex` | 豆包 API Key | 模型、音色与服务地址配置见下表 |
|
|
16
16
|
| Hugging Face speech-to-speech | `speech-to-speech` | 先启动服务;默认 `ws://127.0.0.1:8765/v1/realtime` | [本地模型链路](../voice-frontends/speech-to-speech.zh.md) |
|
|
17
17
|
| MiniCPM-o 4.5 | `minicpm-o` | 先启动服务;默认 `ws://127.0.0.1:8006/v1/realtime?mode=audio` | [音频 / 视频模式及限制](../voice-frontends/minicpm-o.zh.md) |
|
|
18
18
|
|
|
@@ -20,38 +20,55 @@
|
|
|
20
20
|
|
|
21
21
|
```dotenv
|
|
22
22
|
QWEN_AUDIO_REALTIME_PROVIDER=dashscope
|
|
23
|
-
|
|
24
|
-
QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.
|
|
23
|
+
QWEN_AUDIO_REALTIME_API_KEY=your-key
|
|
24
|
+
QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.1-realtime-plus
|
|
25
|
+
QWEN_AUDIO_REALTIME_URL=
|
|
26
|
+
QWEN_AUDIO_REALTIME_VOICE=
|
|
25
27
|
```
|
|
26
28
|
|
|
27
29
|
切换到 StepFun 时,改选服务并填写它自己的凭据:
|
|
28
30
|
|
|
29
31
|
```dotenv
|
|
30
32
|
QWEN_AUDIO_REALTIME_PROVIDER=stepfun
|
|
31
|
-
|
|
33
|
+
QWEN_AUDIO_REALTIME_API_KEY=your-stepfun-key
|
|
34
|
+
QWEN_AUDIO_REALTIME_MODEL=stepaudio-3-realtime-preview
|
|
35
|
+
QWEN_AUDIO_REALTIME_URL=
|
|
36
|
+
QWEN_AUDIO_REALTIME_VOICE=
|
|
32
37
|
```
|
|
33
38
|
|
|
34
|
-
|
|
39
|
+
所有前台使用相同的五个字段,只描述当前连接,不分别保存每家供应商的配置。切换供应商时,同时替换 Key 和模型,清空或替换地址、音色。前台凭据与后台、搜索、记忆服务的凭据独立。
|
|
35
40
|
|
|
36
|
-
##
|
|
41
|
+
## 连接配置
|
|
37
42
|
|
|
38
|
-
|
|
|
39
|
-
| --- | --- |
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
| 字段 | 含义 |
|
|
44
|
+
| --- | --- |
|
|
45
|
+
| `QWEN_AUDIO_REALTIME_PROVIDER` | 供应商,默认 `dashscope` |
|
|
46
|
+
| `QWEN_AUDIO_REALTIME_MODEL` | 模型 ID;留空使用供应商默认模型 |
|
|
47
|
+
| `QWEN_AUDIO_REALTIME_API_KEY` | 当前服务的凭据 |
|
|
48
|
+
| `QWEN_AUDIO_REALTIME_URL` | WebSocket 服务地址;留空使用供应商默认值 |
|
|
49
|
+
| `QWEN_AUDIO_REALTIME_VOICE` | 指定音色;留空使用模型或服务默认值 |
|
|
50
|
+
|
|
51
|
+
各供应商的默认值:
|
|
52
|
+
|
|
53
|
+
| Provider | 默认模型 | 默认地址 |
|
|
54
|
+
| --- | --- | --- |
|
|
55
|
+
| `dashscope` | `qwen-audio-3.1-realtime-plus` | `wss://dashscope.aliyuncs.com/api-ws/v1/realtime` |
|
|
56
|
+
| `stepfun` | `stepaudio-3-realtime-preview` | `wss://api.stepfun.com/v1/realtime` |
|
|
57
|
+
| `gpt-live` | `gpt-realtime-2.1` | `wss://api.openai.com/v1/realtime` |
|
|
58
|
+
| `google-live` | `gemini-3.8-live` | `wss://generativelanguage.googleapis.com/ws/google.ai.generativelanguage.v1beta.GenerativeService.BidiGenerateContent` |
|
|
59
|
+
| `doubao-seeduplex` | `1.2.6.1` | `wss://openspeech.bytedance.com/api/v3/duplex/realtime/dialogue` |
|
|
60
|
+
| `speech-to-speech` | 上游配置 | `ws://127.0.0.1:8765/v1/realtime` |
|
|
61
|
+
| `minicpm-o` | 上游配置 | `ws://127.0.0.1:8006/v1/realtime?mode=audio` |
|
|
62
|
+
|
|
63
|
+
speech-to-speech 与 MiniCPM-o 的模型、音色由上游服务管理,应留空;服务启用 Bearer 认证时才需填写 API Key。Qwen3.8 Omni 必须填写[业务空间专属地址](../voice-frontends/qwen-omni-realtime.zh.md#配置),不能使用 DashScope 公共默认地址。统一配置不改变各服务的协议和能力限制,这些差异仍由 Provider adapter 处理。
|
|
49
64
|
|
|
50
65
|
DashScope 当前内置以下模型档案:
|
|
51
66
|
|
|
52
67
|
| 模型 ID | 实时输入 |
|
|
53
68
|
| --- | --- |
|
|
54
|
-
| `qwen-audio-3.
|
|
69
|
+
| `qwen-audio-3.1-realtime-plus`(默认) | 文字、语音 |
|
|
70
|
+
| `qwen-audio-3.1-realtime-flash` | 文字、语音 |
|
|
71
|
+
| `qwen-audio-3.0-realtime-plus` | 文字、语音 |
|
|
55
72
|
| `qwen-audio-3.0-realtime-flash` | 文字、语音 |
|
|
56
73
|
| `qwen3.5-omni-flash-realtime` | 文字、语音、实时视觉帧 |
|
|
57
74
|
| `qwen3.5-omni-plus-realtime` | 文字、语音、实时视觉帧 |
|
|
@@ -59,17 +76,30 @@ DashScope 当前内置以下模型档案:
|
|
|
59
76
|
|
|
60
77
|
这些档案均支持工具调用。模型能否接收视觉帧,还取决于客户端和传输通道,见[视觉输入](../guides/vision.zh.md)。
|
|
61
78
|
|
|
79
|
+
Audio 3.1 Plus / Flash 复用现有 `dashscope` Provider,默认音色为 `longanqian_v3.1`;
|
|
80
|
+
Audio 3.0 Plus / Flash 保持 `longanqian`。显式配置 `QWEN_AUDIO_REALTIME_VOICE`
|
|
81
|
+
时,须选择与模型匹配的音色。Audio 模型不支持视觉输入。模型切换和工作区端点覆盖见
|
|
82
|
+
[Audio 使用说明](../voice-frontends/qwen-audio-realtime.zh.md)。
|
|
83
|
+
|
|
84
|
+
## 选择受支持模型
|
|
85
|
+
|
|
86
|
+
模型列表由框架维护,桌面版和 `qwenaudio config show` 使用同一份列表。在桌面版为当前供应商选择模型,或设置 `QWEN_AUDIO_REALTIME_MODEL`;留空使用供应商默认模型。例如,当前供应商为 `dashscope` 时,填写 `qwen-audio-3.1-realtime-flash` 即可切换到内置的 3.1 Flash,默认模型仍为 3.1 Plus。
|
|
87
|
+
|
|
88
|
+
未支持的模型 ID 会报配置错误。用户配置不能新增模型、重定义已有模型,也不能修改其 API 绑定、能力、话轮检测或接入约束;这些参数由框架的模型适配固定。现有 `QWEN_AUDIO_REALTIME_VOICE` 和会话级音色覆盖仍然有效,但须选择与当前模型兼容的音色。
|
|
89
|
+
|
|
90
|
+
列表表示代码已实现的支持,不代表线上服务可用性或账号授权。请确认所选模型的账号、地域、服务地址和音色,再按下文应用并验证连接。speech-to-speech 与 MiniCPM-o 的模型继续在外部服务中配置。
|
|
91
|
+
|
|
62
92
|
## 应用并验证
|
|
63
93
|
|
|
64
94
|
1. 桌面版修改后点击“应用”。终端 Gateway 退出后重新启动;已安装的后台服务执行 `qwenaudio gateway restart`。
|
|
65
95
|
2. 连接客户端,确认“语音前台”已连接。
|
|
66
96
|
3. 说一句话,确认能听到回答。需要工具时,再测试搜索或一个简单后台请求。
|
|
67
97
|
|
|
68
|
-
CLI
|
|
98
|
+
CLI 可查看当前配置及受支持模型列表:
|
|
69
99
|
|
|
70
100
|
```bash
|
|
71
101
|
qwenaudio config show
|
|
72
|
-
qwenaudio config set --realtime-model qwen-audio-3.
|
|
102
|
+
qwenaudio config set --realtime-model qwen-audio-3.1-realtime-flash
|
|
73
103
|
```
|
|
74
104
|
|
|
75
105
|
`config set` 修改当前 Provider 的模型,不切换 Provider,也不自动重启 Gateway。远程客户端沿用远端配置;不能通过本机配置切换远端模型。
|
|
@@ -85,4 +115,6 @@ qwenaudio config set --realtime-model qwen-audio-3.0-realtime-flash
|
|
|
85
115
|
|
|
86
116
|
## 旧配置排查
|
|
87
117
|
|
|
88
|
-
|
|
118
|
+
供应商专属的旧前台变量仅兼容读取,上述五个统一字段优先,包括显式留空。旧文件若同时含有统一的模型/音色字段和其他供应商的模型/音色字段,需将当前所选供应商需要的值写入统一字段。Omni 原有的 `QWEN_OMNI_REALTIME_VOICE` 应移至 `QWEN_AUDIO_REALTIME_VOICE`。
|
|
119
|
+
|
|
120
|
+
现在只保存当前连接,不再分别持久化各供应商草稿。旧变量不会自动删除,因为后台 Agent、搜索或其他模块可能仍在使用;迁移后可自行清理仅用于前台的废弃覆盖项。更多优先级规则见[配置总览](../configuration.zh.md#配置优先级)。
|
package/docs/configuration.md
CHANGED
|
@@ -16,7 +16,7 @@ tokens, or local identity secrets.
|
|
|
16
16
|
For the default voice frontend:
|
|
17
17
|
|
|
18
18
|
```dotenv
|
|
19
|
-
|
|
19
|
+
QWEN_AUDIO_REALTIME_API_KEY=your-key
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
If your Backend Agent is already installed and configured, simply select it. For Qwen Code:
|
package/docs/configuration.zh.md
CHANGED
package/docs/contract.md
CHANGED
|
@@ -34,7 +34,9 @@ Wire 7.0 replaces the permission decision `once` with explicit Task-scoped `task
|
|
|
34
34
|
Gateway and Clients must update together. Capability IDs keep their historical
|
|
35
35
|
names; negotiate the actual wire version through `session.hello`.
|
|
36
36
|
|
|
37
|
-
The current health-contract version is `5.
|
|
37
|
+
The current health-contract version is `5.10.0`. The additive `5.10` line exposes
|
|
38
|
+
accepted client input state through authenticated health requests, with remote
|
|
39
|
+
results scoped to the authenticated owner. The additive `5.9` line adds
|
|
38
40
|
host-issued direct device connection codes: Conversation Clients authenticate and operate through
|
|
39
41
|
one WS/WSS connection, while loopback HTTP remains a host management plane. The `5.8` line adds
|
|
40
42
|
capability-negotiated realtime JPEG visual frames while keeping provider wire
|
|
@@ -85,6 +87,7 @@ below instead of assuming the old list.
|
|
|
85
87
|
| `gateway.direct-device-connection` | A loopback-only management call issues one short browser-compatible connection code containing a revocable per-device credential; native Clients import it without HTTP pairing or health preflight, while a browser exchanges its fragment token for an HttpOnly cookie | `server/test/gateway-application.test.mjs`, `test/gateway-remote-access.test.mjs`, `desktop/test/gateway-connection.test.mjs` |
|
|
86
88
|
| `host.electron-entry` | `qwen-audio-agent/electron`: a CommonJS entry an Electron main process can `require`, loading every ESM contract through one `load()` | `test/consumer-install.test.mjs` |
|
|
87
89
|
| `host.gateway-process` | `GatewayProcess` ships: forking, port fallback, the readiness handshake, restart, and telling a planned exit from a crash — the desktop app runs the same implementation | `desktop/test/gateway-process.test.mjs` |
|
|
90
|
+
| `input.client-status` | Authenticated health exposes accepted client input, host suspension and effective input; remote results are owner-scoped | `server/test/gateway-application.test.mjs`, `server/test/gateway-client-handshake.test.mjs`, `server/test/realtime-session-runtime.test.mjs` |
|
|
88
91
|
| `input.suspend-protocol` | `POST /api/input/suspend\|resume`, `GET /api/input`; the Gateway relays the suspension to clients through `input.suspend` / `input.resume` | `server/test/input-suspend-protocol.test.mjs` |
|
|
89
92
|
| `input.suspend-clears-playback` | Suspending also clears playback so host recording stays clean | `server/test/input-suspend-protocol.test.mjs` |
|
|
90
93
|
| `input.suspend-ttl` | A suspension expires on its own when the holder never resumes | `server/test/input-arbitration.test.mjs` |
|
|
@@ -304,7 +307,7 @@ the lease. Locked by `test/consumer-install.test.mjs` and
|
|
|
304
307
|
|
|
305
308
|
Starting `server/src/index.mjs` without the required realtime credential is
|
|
306
309
|
refused before the lease is touched: the process exits non-zero and the error
|
|
307
|
-
names every missing key (`
|
|
310
|
+
names every missing key (`QWEN_AUDIO_REALTIME_API_KEY`, or the Speech-to-Speech service
|
|
308
311
|
address when that provider is selected). `QWEN_AUDIO_ALLOW_UNCONFIGURED=1`
|
|
309
312
|
opts out for harnesses that never open a voice connection. Locked by
|
|
310
313
|
`test/gateway-setup.test.mjs` and `test/consumer-install.test.mjs`.
|
|
@@ -314,3 +317,20 @@ opts out for harnesses that never open a voice connection. Locked by
|
|
|
314
317
|
Shipped code runs on the oldest Node admitted by the `engines` range. CI runs
|
|
315
318
|
the suite on that version, and `test/runtime-baseline.test.mjs` fails the
|
|
316
319
|
build if shipped code uses an API newer than the baseline.
|
|
320
|
+
|
|
321
|
+
## Client input status
|
|
322
|
+
|
|
323
|
+
With `input.client-status`, `GET /api/health` includes `voiceInput`:
|
|
324
|
+
|
|
325
|
+
```json
|
|
326
|
+
{"inputEnabled":false,"inputActive":false,"clients":[{"clientType":"cli","inputEnabled":false,"inputSuspended":false,"inputActive":false}]}
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
`inputEnabled` is the runtime's accepted client input setting; `inputSuspended`
|
|
330
|
+
is a separate host hold. `inputActive` requires enabled input, no host hold,
|
|
331
|
+
an awake runtime and active voice ownership. It is a runtime input gate, not a
|
|
332
|
+
measurement of physical microphone capture. Only active voice clients appear;
|
|
333
|
+
without one, `inputEnabled` is `null`, `inputActive` is `false`, and `clients`
|
|
334
|
+
is empty. Loopback operators see an aggregate across owners; authenticated
|
|
335
|
+
remote requests see only their owner. This read does not claim a client lease.
|
|
336
|
+
State is transient and carries no owner IDs, device IDs, credentials or media.
|