qwen-audio-agent 1.5.0 → 1.6.1

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.
Files changed (78) hide show
  1. package/README.md +124 -307
  2. package/README_ZH.md +218 -0
  3. package/cli/package.json +1 -1
  4. package/config/frontend-agent/PROMPT.md +11 -6
  5. package/docs/architecture.md +16 -8
  6. package/docs/architecture.zh.md +305 -0
  7. package/docs/backends/overview.md +89 -0
  8. package/docs/backends/overview.zh.md +89 -0
  9. package/docs/configuration.md +363 -277
  10. package/docs/configuration.zh.md +640 -0
  11. package/docs/desktop/overview.md +45 -0
  12. package/docs/desktop/overview.zh.md +45 -0
  13. package/docs/getting-started/install.md +77 -0
  14. package/docs/getting-started/install.zh.md +77 -0
  15. package/docs/getting-started/quickstart.md +64 -0
  16. package/docs/getting-started/quickstart.zh.md +64 -0
  17. package/docs/getting-started/tui.md +41 -0
  18. package/docs/getting-started/tui.zh.md +41 -0
  19. package/docs/reference/memory.md +59 -0
  20. package/docs/reference/memory.zh.md +59 -0
  21. package/docs/voice-frontends/speech-to-speech.md +87 -0
  22. package/docs/voice-frontends/speech-to-speech.zh.md +87 -0
  23. package/package.json +22 -4
  24. package/scripts/claude-code-acp.mjs +54 -0
  25. package/scripts/codex-acp.mjs +52 -0
  26. package/scripts/lib/launcher.mjs +184 -0
  27. package/scripts/lib/launcher.test.mjs +108 -0
  28. package/scripts/openclaw-gateway.mjs +13 -0
  29. package/scripts/openclaw.mjs +200 -0
  30. package/scripts/opencode-server.mjs +12 -0
  31. package/scripts/opencode.mjs +134 -0
  32. package/scripts/release-check +11 -8
  33. package/scripts/set-version.mjs +1 -1
  34. package/scripts/test/memory-extractor-e2e.mjs +185 -0
  35. package/scripts/test/memory-gateway-smoke.mjs +135 -0
  36. package/scripts/verify-package.mjs +3 -3
  37. package/server/package.json +2 -1
  38. package/server/src/agent/acp-backend-adapter.mjs +12 -2
  39. package/server/src/agent/acp-process-client.mjs +5 -4
  40. package/server/src/agent/backend-availability.mjs +57 -0
  41. package/server/src/agent/backends/claude.mjs +3 -6
  42. package/server/src/agent/backends/codex.mjs +3 -2
  43. package/server/src/agent/backends/openclaw.mjs +3 -1
  44. package/server/src/agent/backends/opencode.mjs +3 -3
  45. package/server/src/agent/backends/qoder.mjs +1 -2
  46. package/server/src/agent/builtin-mcp.mjs +67 -0
  47. package/server/src/agent/coordinator.mjs +1 -1
  48. package/server/src/app/bootstrap.mjs +40 -4
  49. package/server/src/conversation/frontend-agent-context.mjs +1 -1
  50. package/server/src/conversation/frontend-memory.mjs +36 -7
  51. package/server/src/conversation/memory-audit.mjs +55 -0
  52. package/server/src/conversation/memory-extractor.mjs +259 -0
  53. package/server/src/conversation/profiled-memory-store.mjs +13 -4
  54. package/server/src/core/config.mjs +20 -0
  55. package/server/src/core/memory-scopes.mjs +16 -2
  56. package/server/src/process/backend-drivers/openclaw.mjs +1 -1
  57. package/server/src/process/backend-drivers/opencode.mjs +1 -1
  58. package/server/src/process/managed-backend.mjs +4 -15
  59. package/server/src/voice/frontend-tools.mjs +7 -7
  60. package/server/src/voice/realtime-gateway.mjs +83 -20
  61. package/server/src/voice/realtime-provider.mjs +1 -1
  62. package/server/src/voice/tools/tool-call-handler.mjs +143 -111
  63. package/shared/backend-auth-status.mjs +1 -0
  64. package/shared/backend-install.mjs +190 -20
  65. package/shared/backend-lifecycle.mjs +4 -2
  66. package/shared/backend-setup.mjs +14 -2
  67. package/shared/realtime-events.mjs +1 -0
  68. package/tui/package.json +1 -1
  69. package/web/dist/assets/index-CH9eBvfi.js +38 -0
  70. package/web/dist/index.html +1 -1
  71. package/README_EN.md +0 -466
  72. package/scripts/claude-code-acp +0 -73
  73. package/scripts/codex-acp +0 -71
  74. package/scripts/openclaw +0 -269
  75. package/scripts/openclaw-gateway +0 -8
  76. package/scripts/opencode-acp +0 -6
  77. package/scripts/opencode-server +0 -208
  78. package/web/dist/assets/index-CAteXyT1.js +0 -38
package/README.md CHANGED
@@ -1,382 +1,198 @@
1
1
  # Qwen Audio Agent
2
2
 
3
- [中文](README.md) | [English](README_EN.md)
3
+ [中文](README_ZH.md) | [English](README.md)
4
4
 
5
5
  [![CI](https://github.com/QwenAudio/qwen-audio-agent/actions/workflows/ci.yml/badge.svg)](https://github.com/QwenAudio/qwen-audio-agent/actions/workflows/ci.yml)
6
6
  [![npm](https://img.shields.io/npm/v/qwen-audio-agent)](https://www.npmjs.com/package/qwen-audio-agent)
7
7
  [![node](https://img.shields.io/badge/node-%E2%89%A522.22.2-brightgreen)](https://nodejs.org/)
8
8
  [![license](https://img.shields.io/github/license/QwenAudio/qwen-audio-agent)](LICENSE)
9
- [![WeChat](https://img.shields.io/badge/WeChat-%E5%8A%A0%E5%85%A5%E8%AE%A8%E8%AE%BA-07C160?logo=wechat&logoColor=white)](#交流与分享)
9
+ [![WeChat](https://img.shields.io/badge/WeChat-join_chat-07C160?logo=wechat&logoColor=white)](#community)
10
10
 
11
- ## Agent,始终在场
11
+ ## Agent Presence
12
12
 
13
- 真正的交流,不该在说完一句话后,就陷入漫长的等待。也不该因为 Agent 正在查资料、调用工具或处理任务,整场对话就此暂停。
13
+ Real conversation should not leave you waiting after a single sentence, nor
14
+ should it grind to a halt just because the Agent is looking something up,
15
+ calling a tool, or working on a task.
14
16
 
15
- 交流应该是连续的,Agent 也应该始终在场。
17
+ Conversation should keep flowing, and the Agent should always be present.
16
18
 
17
- 所以,我们做了 **qwen-audio-agent**——让 Agent 持续交流、持续工作、持续在场的实时语音运行时。无论是聊天、思考,还是处理任务,Agent 都始终在这场对话里。它会倾听,会回应,也会在任务完成时自然地告诉你:
19
+ That is why we built **qwen-audio-agent**—a realtime voice runtime that keeps
20
+ Agents talking, working, and present. Whether chatting with you, thinking
21
+ through a problem, or working on a task, your Agent remains in the
22
+ conversation. It listens, responds, and when the task is complete, naturally
23
+ tells you:
18
24
 
19
- “已经好了。”
25
+ "It's ready."
20
26
 
21
27
  ## News
22
28
 
29
+ - **2026-08-07 · [v1.6.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.6.1)**
30
+ ⚡ Task delegation and permission decisions confirm instantly; 🖥️ built-in computer-use lets backend Agents operate the computer out of the box; 🎙️ more reliable wake; 📚 fully bilingual docs.
31
+ - **2026-08-06 · [v1.6.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.6.0)**
32
+ 🪟 Desktop app now officially supports Windows; 🧠 adds invisible memory with automatic extraction after each session.
23
33
  - **2026-08-05 · [v1.5.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.5.0)**
24
- ⏰ 新增定时提醒与进度查询,任务完成或待授权时自动唤醒;🗣️ 新增语音唤醒词“你好千问”,休眠后说出唤醒词即可激活;🐧 桌面版支持 Linux 打包(AppImage + deb);桌面版数据目录与 CLI 隔离,两者可同时使用互不干扰。
34
+ ⏰ Adds scheduled reminders and progress reporting; 🗣️ adds the voice wake word ("你好千问"); 🐧 desktop build support for Linux; the desktop app now uses a data directory isolated from the CLI.
25
35
  - **2026-08-05 · [v1.4.2](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.2)**
26
- 🔧 优化桌面端后台 Agent 的安装、登录与状态检测,完善长期记忆行为。
36
+ 🔧 Improves desktop backend Agent installation, login, and status detection; refines long-term memory behavior.
27
37
  - **2026-08-04 · [v1.4.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.1)**
28
- 🧰 新增后台 Agent 一键安装;桌面悬浮球支持自动隐藏与快捷键唤回。
38
+ 🧰 Adds one-click backend Agent install; desktop floating orb supports auto-hide and shortcut recall.
29
39
  - **2026-08-04 · [v1.4.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.0)**
30
- 🧠 新增个性化规则与清单管理;桌面版支持自动休眠与快捷键唤醒。
40
+ 🧠 Adds personalized rules and checklist management; desktop app supports auto-sleep and shortcut wake.
31
41
  - **2026-08-03 · [v1.3.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.3.0)**
32
- 🎙️ 新增 [🤗 speech-to-speech](https://github.com/huggingface/speech-to-speech) 前台接入,支持本地部署 VAD、STT、LLM 与 TTS 全链路。
42
+ 🎙️ Adds [🤗 speech-to-speech](https://github.com/huggingface/speech-to-speech) frontend integration, supporting fully local VAD, STT, LLM, and TTS.
33
43
  - **2026-08-01 · [v1.2.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.2.0)**
34
- ⚡ 桌面版新增自动更新,优化启动速度与后台 Agent 检测。
44
+ ⚡ Desktop app adds auto-update, faster startup, and improved backend Agent detection.
35
45
  - **2026-07-31 · [v1.1.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.1.0)**
36
- 🤝 新增 Kimi Code CLI 后台,原生 ACP 接入。
46
+ 🤝 Adds Kimi Code CLI backend with native ACP integration.
37
47
  - **2026-07-30 · [v1.0.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.0.0)**
38
- 🚀 正式版发布,推出内置 Gateway 的 macOS 桌面版。
48
+ 🚀 First stable release, introducing a macOS desktop app with a built-in Gateway.
39
49
  - **2026-07-28 · [v0.9.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v0.9.0)**
40
- 🌍 项目正式开源,后台 Agent 统一接入 ACP 架构。
50
+ 🌍 Project officially open-sourced; backend Agents unified under the ACP architecture.
41
51
 
42
- ## 对话继续,任务也在继续
52
+ ## Conversation Continues, Tasks Too
43
53
 
44
- 对话不会因为后台任务而停下;任务完成后,结果会自然回到当前对话:
54
+ Conversation doesn't stop for background tasks; when a task completes, the
55
+ result naturally returns to the current conversation:
45
56
 
46
57
  https://github.com/user-attachments/assets/42022655-36d1-46b2-9c26-ff0765284000
47
58
 
48
- ### 核心特色
59
+ ### Core Features
49
60
 
50
- - 全双工实时语音交互、自然打断和持续多轮对话
51
- - 一键选择你喜欢的办事 Agent,复用已有的工具、MCP、Skill
52
- - 前台对话与后台任务并驾齐驱,可随时追问任务进度或取消任务
53
- - 支持创建多个独立任务,由后台 Agent 异步执行,并持续追踪任务状态
54
- - 任务结果自动回到当前对话,支持继续追问和修改
55
- - 支持 WebUI、终端 TUI 和 macOS 桌面悬浮球
56
- - 支持本地用户档案与跨会话个人记忆
61
+ - Full-duplex realtime voice interaction, natural interruption, and sustained multi-turn conversation
62
+ - One-click selection of your preferred coding Agent, reusing existing tools, MCP, and Skills
63
+ - Frontend conversation and background tasks run in parallel; ask about progress or cancel at any time
64
+ - Create multiple independent tasks executed asynchronously by the backend Agent, with continuous status tracking
65
+ - Task results automatically return to the current conversation, supporting follow-up questions and modifications
66
+ - WebUI, terminal TUI, and desktop floating orb (macOS / Windows / Linux)
67
+ - Local user profile and cross-session personal memory
57
68
 
58
- ## 参考架构
69
+ ## Architecture
59
70
 
60
- ![qwen-audio-agent 原理图](docs/architecture-overview.png)
71
+ ![qwen-audio-agent architecture](docs/architecture-overview-en.png)
61
72
 
62
- 能直接回答的问题会立即回答;需要工具或持续处理时,任务会交给后台 Agent。
63
- 整个过程中,用户面对的始终是同一个助理。
73
+ Questions that can be answered directly are answered immediately; when tools
74
+ or sustained processing are needed, the task is delegated to the backend Agent.
75
+ Throughout, the user always faces the same assistant.
64
76
 
65
77
  <details open>
66
- <summary>查看详细架构</summary>
78
+ <summary>View detailed architecture</summary>
67
79
 
68
- ![qwen-audio-agent 接入参考架构](docs/qwen-audio-agent-three-layer-architecture.png)
80
+ ![qwen-audio-agent reference architecture](docs/qwen-audio-agent-three-layer-architecture-en.png)
69
81
 
70
- 更完整的设计与模块说明见[架构文档](docs/architecture.md)。
82
+ For the full design and module breakdown, see the [architecture document](docs/architecture.md).
71
83
 
72
84
  </details>
73
85
 
74
- ## Agent 支持
86
+ ## Agent Support
75
87
 
76
- | 后台 Agent | 接入方式 | 接入准备 | 推荐指数 |
88
+ | Backend Agent | Integration | Setup | Rating |
77
89
  | --- | --- | --- | --- |
78
- | 无 | N/A | 仅前台模式,无需配置 | ★★★★★ |
79
- | OpenCode | 原生 ACP | 支持一键安装和百炼配置 | ★★★★★ |
80
- | OpenClaw | 内置 ACP 桥接 | 支持一键安装和百炼配置 | ★★★★★ |
81
- | Qoder | 原生 ACP | 支持一键安装,需用户配置 | ★★★★★ |
82
- | Kimi Code | 原生 ACP | 支持一键安装,需用户配置 | ★★★★★ |
83
- | Hermes | 原生 ACP | macOS / Linux 支持一键安装,需用户配置 | ★★★★☆ |
84
- | CodeBuddy | 原生 ACP | 支持一键安装,需用户配置 | ★★★★☆ |
85
- | Codex | 外部 ACP 适配 | 支持一键安装本体与适配器,需用户配置 | ★★★★☆ |
86
- | Claude Code | 外部 ACP 适配 | 支持一键安装本体与适配器,需用户配置 | ★★★★☆ |
90
+ | None | N/A | Frontend-only mode, no config needed | ★★★★★ |
91
+ | OpenCode | Native ACP | One-click install + Bailian config | ★★★★★ |
92
+ | OpenClaw | Built-in ACP bridge | One-click install + Bailian config | ★★★★★ |
93
+ | Qoder | Native ACP | One-click install, user config required | ★★★★★ |
94
+ | Kimi Code | Native ACP | One-click install, user config required | ★★★★★ |
95
+ | Hermes | Native ACP | One-click install, user config required | ★★★★☆ |
96
+ | CodeBuddy | Native ACP | One-click install, user config required | ★★★★☆ |
97
+ | Codex | External ACP adapter | One-click install (base + adapter), user config required | ★★★★☆ |
98
+ | Claude Code | External ACP adapter | One-click install (base + adapter), user config required | ★★★★☆ |
87
99
 
88
- 推荐指数综合反映当前集成完整度、兼容性和实际验证程度:五星表示已经过充分测试的
89
- 推荐集成,四星表示正在开发或尚未完成同等范围验证。
90
- 详细配置和能力边界见[配置说明](docs/configuration.md)。
100
+ Ratings reflect current integration completeness, compatibility, and
101
+ verification level: five stars indicate a thoroughly tested recommended
102
+ integration; four stars indicate active development or not yet fully verified.
103
+ For detailed configuration and capability boundaries, see the [configuration guide](docs/configuration.md).
91
104
 
92
- ## 安装
105
+ ## Installation
93
106
 
94
- 需要 Node.js 22.22.2+ 或 24.15.0+、npm 10+。使用默认的 DashScope
95
- 实时语音前台时,还需要 DashScope API Key。
96
- 仓库提供 `.nvmrc` 和 `.node-version`;使用 nvm 时可直接运行 `nvm use`。
97
-
98
- 一键安装(推荐,从 npm 安装):
107
+ Requires Node.js 22.22.2+ or 24.15.0+, npm 10+. One-click install (recommended):
99
108
 
100
109
  ```bash
101
110
  npm install -g qwen-audio-agent
102
111
  ```
103
112
 
104
- 也可以直接从 GitHub 安装最新代码:
113
+ For building from source, installing from GitHub, and obtaining a DashScope
114
+ API Key, see the [installation guide](docs/getting-started/install.md).
105
115
 
106
- ```bash
107
- npm install -g git+https://github.com/QwenAudio/qwen-audio-agent.git
108
- ```
116
+ ## Quick Start
109
117
 
110
- 从源码安装:
111
-
112
- ```bash
113
- git clone https://github.com/QwenAudio/qwen-audio-agent.git
114
- cd qwen-audio-agent
115
- npm install
116
- npm run install:global
117
- ```
118
-
119
- 升级到最新 npm 版本:
120
-
121
- ```bash
122
- npm install -g qwen-audio-agent@latest
123
- ```
124
-
125
- 升级到 GitHub 最新代码:
126
-
127
- ```bash
128
- npm install -g git+https://github.com/QwenAudio/qwen-audio-agent.git
129
- ```
130
-
131
- ## 获取 DashScope API Key
132
-
133
- 阿里云百炼为 Qwen Audio 3.0 Realtime 提供
134
- [新人免费额度](https://help.aliyun.com/zh/model-studio/new-free-quota),创建 API Key 后
135
- 即可免费开始使用 qwen-audio-agent。
136
-
137
- 1. 打开百炼控制台的 [API Key 页面](https://bailian.console.aliyun.com/?tab=model#/api-key),
138
- 登录账号,单击**创建 API Key**。
139
- 2. 复制生成的 Key,稍后填入 `config.env`。请勿公开或提交 API Key。
140
-
141
- 详细说明见[百炼官方文档](https://help.aliyun.com/zh/model-studio/get-api-key)。
142
-
143
- ## 快速开始
144
-
145
- 1. 创建配置:
118
+ 1. Create your config and fill in the API Key:
146
119
 
147
120
  ```bash
148
121
  qwenaudio config
149
122
  ```
150
123
 
151
- 2. 打开命令显示的 `config.env`,填写 DashScope API Key。需要执行后台任务时,
152
- 再选择 OpenClaw 或其他后台 Agent:
153
-
154
124
  ```dotenv
155
125
  DASHSCOPE_API_KEY=your-key
156
- # 语音前台模型:qwen-audio-3.0-realtime-flash 或 qwen-audio-3.0-realtime-plus(默认)
126
+ # Voice frontend model: qwen-audio-3.0-realtime-flash or qwen-audio-3.0-realtime-plus (default)
157
127
  QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.0-realtime-plus
158
- # 后台Agent:可选,不设置或设置为 none 时,启动仅前台模式
128
+ # Backend Agent: optional, leave empty or set to none for frontend-only mode
159
129
  AGENT_PROTOCOL=openclaw
160
- # 后台模型:可为空,留空则沿用 Agent 自身的用户配置
130
+ # Backend model: can be empty; if empty, uses the Agent's own user config
161
131
  QWEN_AUDIO_AGENT_BACKEND_MODEL=qwen3.7-max
162
132
  ```
163
133
 
164
- 3. 在一个终端中启动 Gateway:
165
-
166
- ```bash
167
- qwenaudio
168
- ```
169
-
170
- 4. 另开一个终端,启动 TUI:
171
-
172
- ```bash
173
- qwenaudio tui
174
- ```
175
-
176
- 也可以使用浏览器界面:
177
-
178
- ```bash
179
- qwenaudio webui
180
- ```
181
-
182
- ### 使用 Hugging Face speech-to-speech 前台
183
-
184
- qwen-audio-agent 也可以连接用户自行运行的
185
- [Hugging Face speech-to-speech](https://github.com/huggingface/speech-to-speech)。
186
- 它将 VAD、STT、LLM 和 TTS 组合成 OpenAI Realtime 兼容服务,整条语音链路既可以
187
- 完全运行在本地,也可以按需替换其中的模型或服务。
188
-
189
- 1. 安装 speech-to-speech:
190
-
191
- ```bash
192
- pip install "speech-to-speech[paraformer]"
193
- ```
194
-
195
- 2. 启动全本地服务:
196
-
197
- Linux / Windows(NVIDIA GPU):
198
-
199
- ```bash
200
- speech-to-speech \
201
- --stt paraformer \
202
- --llm_backend transformers \
203
- --device cuda
204
- ```
205
-
206
- Apple Silicon:
207
-
208
- ```bash
209
- speech-to-speech \
210
- --stt paraformer \
211
- --llm_backend mlx-lm \
212
- --device mps
213
- ```
214
-
215
- 没有 NVIDIA GPU 时,也可以选择适合 CPU 的更小本地模型;还可以
216
- 将 LLM 指向本机运行的 vLLM / llama.cpp。服务默认运行在
217
- `ws://127.0.0.1:8765/v1/realtime`。
218
-
219
- 3. 在 qwen-audio-agent 的 `config.env` 中设置:
220
-
221
- ```dotenv
222
- QWEN_AUDIO_REALTIME_PROVIDER=speech-to-speech
223
- SPEECH_TO_SPEECH_REALTIME_URL=ws://127.0.0.1:8765/v1/realtime
224
- ```
225
-
226
- 然后正常启动 `qwenaudio`。在全本地模式下无需云端 API Key。Gateway 只连接 Realtime
227
- 接口,不会修改 speech-to-speech 的 STT、LLM、TTS 或音色配置。
228
- 如果 Realtime 接口位于需要 Bearer 认证的代理后方,可设置
229
- `SPEECH_TO_SPEECH_AUTH_TOKEN`。
134
+ > Uses DashScope realtime voice frontend by default; alternatively, switch to a local [speech-to-speech frontend](docs/voice-frontends/speech-to-speech.md), no cloud API Key needed.
230
135
 
231
- ### TUI 使用注意
232
-
233
- | 平台 | 默认模式 | 打断方式 |
234
- | --- | --- | --- |
235
- | macOS | 带回声消除的全双工 | 直接说话 |
236
- | Linux / Windows | 半双工 | 播报时按 `x` |
237
-
238
- Linux 和 Windows 首次使用前需安装 `sounddevice` 和系统 PortAudio。也可以开启
239
- 无回声消除的全双工模式;此时请佩戴耳机,避免扬声器声音造成误识别:
136
+ 2. Start the Gateway, then open another terminal to start the TUI (or use `qwenaudio webui` for the browser UI):
240
137
 
241
138
  ```bash
242
- qwenaudio tui --audio-mode full
139
+ qwenaudio # Terminal 1: Gateway
140
+ qwenaudio tui # Terminal 2: TUI
243
141
  ```
244
142
 
245
- ## macOS 桌面版
246
-
247
- 桌面版提供常驻桌面的语音悬浮球,并内置 Gateway,无需事先启动服务。同一用户配置
248
- 目录已有本地 Gateway 时会直接连接并以其当前运行配置为准,否则由桌面版自动启动和管理。首次运行时,
249
- 应用会创建配置文件,并引导你在设置页填写 DashScope API Key、选择后台 Agent
250
- (也可以使用仅前台模式)。
143
+ For full configuration options, speech-to-speech frontend setup, and TUI
144
+ platform notes, see [quick start](docs/getting-started/quickstart.md),
145
+ [voice frontends](docs/voice-frontends/speech-to-speech.md), and
146
+ [TUI notes](docs/getting-started/tui.md).
251
147
 
252
- 闲置后悬浮球会自动隐藏并断开实时语音;也可以直接说“可以退下了”让它隐藏。应用仍
253
- 常驻菜单栏,可从菜单栏或显示快捷键重新唤出。默认快捷键为 `⇧⌘ Space`,也可以在
254
- 应用设置中更换。
148
+ ## Desktop App
255
149
 
256
- 桌面版支持流光声波球和液态渐变球两种外观。下面分别展示它们在思考 / 呼吸状态
257
- 下的原始动态效果:
258
-
259
- | 流光声波球 | 液态渐变球 |
260
- | --- | --- |
261
- | ![流光声波球思考动画](docs/desktop-fluid-orb-thinking.gif) | ![液态渐变球思考动画](docs/desktop-goo-orb-thinking.gif) |
262
-
263
- 从发布页下载 `.dmg`,打开后将 **Qwen Audio Agent** 拖入“应用程序”即可。
264
-
265
- 从源码生成本机测试版:
150
+ The desktop app provides a floating voice orb that stays on your desktop,
151
+ with a built-in Gateway, auto-hide, shortcut recall, and voice wake word.
152
+ Download the installer for your platform from the releases page, or build
153
+ from source:
266
154
 
267
155
  ```bash
268
- npm run desktop:build:local
156
+ npm run desktop:build:local # macOS
157
+ npm run desktop:build:win # Windows
158
+ npm run desktop:build:linux # Linux (AppImage + deb, no signing)
269
159
  ```
270
160
 
271
- 官方 Release 只发布 macOS 安装包。需要 Linux 版时,请在 Linux 机器上自行打包:
272
-
273
- ```bash
274
- npm run desktop:build:linux
275
- ```
276
-
277
- 产物位于 `dist/desktop/`(AppImage 与 deb),无需代码签名证书。
278
-
279
- ## 后台常驻
280
-
281
- 希望个人助理长期在线时,可以安装为用户后台服务:
282
-
283
- ```bash
284
- qwenaudio gateway install
285
- ```
286
-
287
- 常用管理命令:
288
-
289
- ```bash
290
- qwenaudio gateway status
291
- qwenaudio gateway restart
292
- qwenaudio gateway stop
293
- qwenaudio gateway start
294
- qwenaudio gateway uninstall
295
- ```
296
-
297
- ## 选择后台 Agent
298
-
299
- `AGENT_PROTOCOL` 是可选配置。留空时,Gateway 以仅前台模式运行,实时语音聊天
300
- 保持可用;如果请求需要后台执行,前台会明确说明当前没有可用的后台 Agent。
301
- 也可以在命令行中使用 `qwenaudio --backend none`,明确要求仅启动前台模式。
161
+ For visuals, orb behavior, and build instructions, see the [desktop documentation](docs/desktop/overview.md).
302
162
 
303
- 通过 `AGENT_PROTOCOL` 环境变量或 `--backend` 参数选择后台 Agent。选择后,
304
- OpenCode 和 OpenClaw 支持自动下载安装;配置
305
- `DASHSCOPE_API_KEY` 和 `QWEN_AUDIO_AGENT_BACKEND_MODEL` 后即可自动接入百炼
306
- 模型。未指定后台模型且用户已经安装并配置对应 Agent 时,则完整复用用户环境。
163
+ ## Backend Agent
307
164
 
308
- 查看当前可用的后台 Agent:
165
+ `AGENT_PROTOCOL` is optional. Leave empty for frontend-only mode; when set,
166
+ it reuses the installed Agent's user-level models, tools, MCP, Skills, and
167
+ authentication. OpenCode and OpenClaw support one-click install with Bailian
168
+ configuration.
309
169
 
310
170
  ```bash
311
- qwenaudio setup
171
+ qwenaudio setup # View available backend Agents
312
172
  ```
313
173
 
314
- 使用 OpenClaw:
315
-
316
- ```dotenv
317
- AGENT_PROTOCOL=openclaw
318
- ```
319
-
320
- 使用 OpenCode:
321
-
322
- ```dotenv
323
- AGENT_PROTOCOL=opencode
324
- ```
325
-
326
- 使用 Qoder:
327
-
328
- ```dotenv
329
- AGENT_PROTOCOL=qoder
330
- ```
331
-
332
- 已安装并完成原生配置的后台 Agent,qwen-audio-agent 会复用其
333
- 用户级模型、工具、MCP、Skill 和认证。
334
-
335
- 使用其他支持 ACP stdio 的 Agent:
336
-
337
- ```dotenv
338
- AGENT_PROTOCOL=acp
339
- ACP_COMMAND=your-agent
340
- ACP_ARGS=["--acp"]
341
- ```
342
-
343
- 通用 ACP 入口不需要修改 Gateway 代码。命令、参数、显示名称和工作目录可分别通过 `ACP_COMMAND`、`ACP_ARGS`、`ACP_LABEL` 和 `ACP_WORKSPACE` 配置。
344
-
345
- 后台权限默认使用 `native`,由后台 Agent 在需要时询问。只有在可信项目中,并且
346
- 明确接受自动执行命令和修改文件时,才应启用:
347
-
348
- ```dotenv
349
- QWEN_AUDIO_AGENT_BACKEND_PERMISSION_MODE=full
350
- ```
351
-
352
- 详细选项见 [配置说明](docs/configuration.md)。
353
-
354
- ## 用户档案与记忆
355
-
356
- 用户数据保存在 `~/.config/qwaudio/`:
174
+ For Agent selection, persistent background service, generic ACP entry, and
175
+ permission modes, see the [backend Agent documentation](docs/backends/overview.md).
357
176
 
358
- - `USER.md`:称呼、所在地、偏好和常用项目
359
- - `frontend-memory.json`:用户明确要求长期记住的信息
360
- - `tasks.json`:任务结果和待通知状态
361
- - `logs/`:经过凭据脱敏并自动轮转的本地运行日志
177
+ ## User Profile and Memory
362
178
 
363
- 这些文件只保存在本机,不会写入源码仓库。可以直接编辑 `USER.md`,也可以在对话中
364
- 要求助理记住或忘记信息。
179
+ User data is stored in `~/.config/qwaudio/` (`USER.md`,
180
+ `frontend-memory.json`, `tasks.json`, `logs/`), kept local only, never
181
+ committed to the repository. See [user profile and memory](docs/reference/memory.md).
365
182
 
366
- ## 使用注意事项
183
+ ## Important Notes
367
184
 
368
- - 不要在用户档案或对话中保存密码、API Key、验证码和访问令牌。
369
- - 麦克风音频与实时对话会发送到配置的 Realtime 前台服务(DashScope 或
370
- speech-to-speech)。
371
- - 后台任务可能调用所选 Agent 的模型、工具、MCP 和外部服务。
372
- - `full` 权限允许后台执行命令和修改文件,只应在可信项目中使用。
373
- - Gateway 默认仅供本机访问;不要直接暴露到局域网或公网。
374
- - Linux / Windows 使用无回声消除全双工时,请佩戴耳机。
185
+ - Do not store passwords, API Keys, verification codes, or access tokens in the user profile or conversation.
186
+ - Microphone audio and realtime conversation are sent to the configured Realtime frontend service (DashScope or speech-to-speech).
187
+ - Background tasks may invoke the selected Agent's models, tools, MCP, and external services.
188
+ - `full` permission allows the backend to execute commands and modify files; use only in trusted projects.
189
+ - The Gateway is for local use only; do not expose it directly to the network or public internet.
190
+ - On Linux / Windows with full-duplex without echo cancellation, wear headphones.
375
191
 
376
- 详细数据边界见[隐私说明](PRIVACY.md),网络与权限配置见
377
- [配置说明](docs/configuration.md)。
192
+ For detailed data boundaries, see the [privacy notice](PRIVACY.md); for
193
+ network and permission configuration, see the [configuration guide](docs/configuration.md).
378
194
 
379
- ## 源码开发
195
+ ## Development
380
196
 
381
197
  ```bash
382
198
  npm install
@@ -385,30 +201,31 @@ npm test
385
201
  ```
386
202
 
387
203
  ```bash
388
- npm run dev # Gateway 与 WebUI 热更新
389
- npm run desktop # macOS 桌面悬浮球
204
+ npm run dev # Gateway + WebUI hot reload
205
+ npm run desktop # Desktop floating orb (macOS / Windows)
390
206
  ```
391
207
 
392
- 更多构建、测试和发布说明见 [CONTRIBUTING.md](CONTRIBUTING.md)。
208
+ For more build, test, and release instructions, see [CONTRIBUTING.md](CONTRIBUTING.md).
393
209
 
394
- ## 交流与分享
210
+ ## Community
395
211
 
396
- 你可以直接在 [GitHub Issues](https://github.com/QwenAudio/qwen-audio-agent/issues) 发起讨论。
212
+ You can start discussions directly in [GitHub Issues](https://github.com/QwenAudio/qwen-audio-agent/issues).
397
213
 
398
- 对中国用户,也可以扫描左侧二维码加入微信交流群;如果群二维码已满或过期,
399
- 扫描右侧任一维护者的个人二维码,维护者会邀请你进群。
214
+ For users in China, scan the QR codes below to join the WeChat group. If the
215
+ group QR code is full or expired, scan either maintainer's personal QR code
216
+ to be invited.
400
217
 
401
- | 微信交流群 | 个人微信 | 个人微信 |
218
+ | WeChat Group | Personal | Personal |
402
219
  | :---: | :---: | :---: |
403
- | <img src="docs/wechat-group-qr.png" width="240" alt="微信交流群二维码"> | <img src="docs/wechat-contact-qr.png" width="240" alt="李旭个人微信二维码"> | <img src="docs/wechat-pigeon-dan-qr.png" width="240" alt="Pigeon.Dan 个人微信二维码"> |
220
+ | <img src="docs/wechat-group-qr.png" width="240" alt="WeChat group QR code"> | <img src="docs/wechat-contact-qr.png" width="240" alt="Li Xu personal WeChat QR code"> | <img src="docs/wechat-pigeon-dan-qr.png" width="240" alt="Pigeon.Dan personal WeChat QR code"> |
404
221
 
405
- ## 参与贡献与安全
222
+ ## Contributing and Security
406
223
 
407
- - 开发与提交说明:[CONTRIBUTING.md](CONTRIBUTING.md)
408
- - 安全问题报告:[SECURITY.md](SECURITY.md)
409
- - 数据流向说明:[PRIVACY.md](PRIVACY.md)
410
- - 第三方组件声明:[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)
224
+ - Development and contribution guide: [CONTRIBUTING.md](CONTRIBUTING.md)
225
+ - Security reports: [SECURITY.md](SECURITY.md)
226
+ - Data flow and privacy: [PRIVACY.md](PRIVACY.md)
227
+ - Third-party notices: [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)
411
228
 
412
- ## 许可证
229
+ ## License
413
230
 
414
231
  [Apache License 2.0](LICENSE)