dsh-gsv-tts 3.0.0 → 4.0.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/CHANGELOG.md CHANGED
@@ -1,93 +1,106 @@
1
- # 变更记录
2
-
3
- 本文件记录 dsh-gsv-tts 的所有版本更新。格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
4
-
5
- ## [3.0.0] - 开发中
6
-
7
- ### 音色 Registry 一键安装(P2)
8
- - 音色市场:包内离线清单(`docs/voices.json`)或自定义远端源(`voiceRegistryUrl`,服务端拉取带 no-cache)
9
- - 信任规则:信任 = 随插件发版内置——仅包内清单且 `trusted` 为真免确认;**任何远端清单一律两阶段确认**(即便自报 trusted),阶段 1 不下载任何字节
10
- - 三工具 `tts_voice_registry` / `tts_voice_install` / `tts_voice_remove` + 同源 HTTP 路由 `registry/{list,install,remove}`,共享核心
11
- - 安装:下载 → sha256 强校验 → 大小/后缀白名单 → 原子落盘 `<installDir>/voices/<id>/` → 写回 `Config.voices`(id + source 账本),失败不留半成品、不写配置
12
- - 只读托管:`source:'registry'` 音色在设置面板只读、仅可卸载;卸载按 id 精确匹配,自定义音色拒绝删,`defaultVoice` 悬空一并清空
13
- - 面板新增"音色市场"卡:来源/信任徽标、试听(复用 /preview)、两阶段确认安装、卸载删除文件确认
14
- - 单测并入 CI:清单校验、信任边界、原子写、卸载护栏、路径穿越
15
-
16
- ## [2.6.0] - 2026-08-29
17
-
18
- ### 设置面板增强(P1-3)
19
- - 每条音色新增"试听"按钮:用固定试听文案单次合成并播放(**未保存的草稿音色也能直接试听**,便于"靠耳朵挑")
20
- - 新增"全部试听(循环)":批量合成所有音色后循环播放,边听边对比,可暂停/停止;失败音色给出提示
21
- - 面板顶栏的引擎运行状态 + 一键启停自 2.2.0 起已提供,本次无改动
22
-
23
- ## [2.5.0] - 2026-08-29
24
-
25
- ### 朗读净化补全(P0-1)
26
- - 过滤 markdown 表格(数据行与分隔行),只读表格外的正文
27
- - 超长文本保护:`tts_speak` 单段上限 6000 字符,朗读/自动朗读分段上限 30000 字符,超限给出友好提示
28
- - 空文本判断与合成口径统一:清洗后为空(只有代码/链接/表格)的回复返回明确提示
29
- - 新增单元测试(`npm test`,基于 node:test,零新增依赖):净化器与句切分器
30
-
31
- ### 渐进分段播放(P1-1)
32
- - 服务端新增 `TTSService.synthesizeSegments`:按句切分(中文句末标点、顿号 + 英文句点,单段 ≤ 800 字)逐段流式合成,段间 0 静音
33
- - `/dsh-gsv-tts/speak` 返回可顺序播放的 URL 队列(`segments`),兼容旧单 URL 字段
34
- - 前端播放器按 `<audio>` ended 事件自动续播下一段——长回复不再等整段合成完才出声
35
-
36
- ### 朗读控件(P1-2)
37
- - 朗读按钮新增 暂停 / 继续 / 停止 三键,作用于整个分段队列(记录当前段 + 段内时间)
38
- - 显示朗读进度(已播 / 总时长 + 段序号)
39
- - 高亮正在朗读的那条消息(呼吸边框)
40
-
41
- ### 自动朗读打断(P0-2)
42
- - 自动朗读改为"通知 → 前端按需合成播放":服务端递增 seq,前端轮询感知新回复
43
- - 新回复到来时默认打断当前朗读(barge-in);设置中可关闭 `interruptOnNew`,朗读中跳过新回复避免叠音
44
-
45
- ## [2.3.2] - 2026-08-28
46
-
47
- - 对齐 `@deepseek-ai/dsh-tools` peer 依赖范围(`^0.1.0-rc.6`),与 lockfile 一致
48
- - CI:`pnpm/action-setup` 从 `packageManager` 字段读取版本
49
- - 文档:README 补充 CI/npm 徽章与 2.3.x 变更记录
50
-
51
- ## [2.3.1] - 2026-08-28
52
-
53
- - 补全 npm 发布元数据(`keywords`、`license`、`repository` 等)以支持插件市场收录
54
- - 新增 GitHub Actions CI 与发布前 manifest 校验(`npm run verify`)
55
- - 新增 `docs/PUBLISHING.md` 发布指南
56
-
57
- ## [2.3.0] - 2026-08-27
58
-
59
- - 真流式客户端改进与引擎兼容补丁
60
- - 补充引擎安装与语音下载指南
61
- - 新增界面截图
62
- - README 双语重写,明确 npm / GitHub 双通道安装
63
-
64
- ## [2.2.0] - 2026-08-26
65
-
66
- - 声音设置面板(保存即热生效,无需重启)
67
- - 引擎一键启停开关
68
- - 🔊 朗读按钮(排除思考内容;引擎未启动时给出明确原因)
69
- - 设置内帮助文档
70
- - 音频同源短链接
71
-
72
- ## [2.1.0] - 2026-08-25
73
-
74
- - 音频改由 DSH Web 服务同源提供(不再用巨型 data URL)
75
- - WAV 头/时长计算修复
76
- - `prompt_text` 留空时 ASR 兜底
77
- - `execFileSync` 消除命令注入风险
78
- - `py -3` 支持
79
- - 健康检查路径探测
80
-
81
- ## [2.0.0] - 2026-08-24
82
-
83
- - 首个正式版本:接入 GSV-TTS-Lite 本地 TTS 引擎
84
- - 提供 `tts_speak` / `tts_list_voices` / `tts_health_check` / `tts_setup_engine` 四个工具
85
-
86
- [2.6.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.5.0...v2.6.0
87
- [2.5.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.2...v2.5.0
88
- [2.3.2]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.1...v2.3.2
89
- [2.3.1]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.0...v2.3.1
90
- [2.3.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.2.0...v2.3.0
91
- [2.2.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.1.0...v2.2.0
92
- [2.1.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.0.0...v2.1.0
93
- [2.0.0]: https://github.com/TaoruiLiu19/dsh-gsv/releases/tag/v2.0.0
1
+ # 变更记录
2
+
3
+ 本文件记录 dsh-gsv-tts 的所有版本更新。格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
4
+
5
+ ## [4.0.0] - 开发中
6
+
7
+ ### 简单模式(Edge 云端第二 Provider)
8
+ - 双 Provider 抽象:`gsv`(本地克隆/离线专业模式)+ `edge`(微软 Edge 云端简单模式),按 `config.provider` 分发,接口 `{kind, listVoices, stream, health}`
9
+ - **迁移守卫**:老用户(settings 无 provider 字段)保持 `gsv`、声音不变;全新安装默认 `edge`;切换后写回持久化
10
+ - Edge 底层 `edge-tts-universal`(原生流式、token 自动刷新、错误恢复、代理),MP3 块零转码透传(`audio/mpeg`),复用 AudioStore/分段渐进播放/暂停下载
11
+ - 音色清单:`listVoices` 按精选序 + zh-CN/en 过滤生成(晓晓/云希/云野等 20+ 中文 + Aria 等英文)
12
+ - **分层健康**:库内 error-recovery/token 刷新兜底瞬时故障;`health()` = 试合成 1 秒 + 退避(≤1 次/60s,30→60→120s,成功重置)
13
+ - 设置面板:模式切换 Tab(快速体验/本地专业)+ 品质角标(🌐 云端 / 🖥️ 本地·离线)+ 音色下拉按 provider 换源 + 云端健康行与降级引导
14
+ - 新增路由 `/provider/voices` `/provider/health`;`tts_speak`/`tts_list_voices` 按 provider 分发
15
+ - `quotaDaily` 配置字段(默认不限量,仅引导文案,硬计数留待 4.x)
16
+ - 单测并入 CI:迁移双分支、Edge MP3 透传、精选音色过滤、健康退避、TTSService 分发落盘
17
+
18
+ ## [3.0.0] - 2026-08-30
19
+
20
+ ### 音色 Registry 一键安装(P2)
21
+ - 音色市场:包内离线清单(`docs/voices.json`)或自定义远端源(`voiceRegistryUrl`,服务端拉取带 no-cache)
22
+ - 信任规则:信任 = 随插件发版内置——仅包内清单且 `trusted` 为真免确认;**任何远端清单一律两阶段确认**(即便自报 trusted),阶段 1 不下载任何字节
23
+ - 三工具 `tts_voice_registry` / `tts_voice_install` / `tts_voice_remove` + 同源 HTTP 路由 `registry/{list,install,remove}`,共享核心
24
+ - 安装:下载 → sha256 强校验 → 大小/后缀白名单 → 原子落盘 `<installDir>/voices/<id>/` → 写回 `Config.voices`(id + source 账本),失败不留半成品、不写配置
25
+ - 只读托管:`source:'registry'` 音色在设置面板只读、仅可卸载;卸载按 id 精确匹配,自定义音色拒绝删,`defaultVoice` 悬空一并清空
26
+ - 面板新增"音色市场"卡:来源/信任徽标、试听(复用 /preview)、两阶段确认安装、卸载删除文件确认
27
+ - 单测并入 CI:清单校验、信任边界、原子写、卸载护栏、路径穿越
28
+
29
+ ## [2.6.0] - 2026-08-29
30
+
31
+ ### 设置面板增强(P1-3)
32
+ - 每条音色新增"试听"按钮:用固定试听文案单次合成并播放(**未保存的草稿音色也能直接试听**,便于"靠耳朵挑")
33
+ - 新增"全部试听(循环)":批量合成所有音色后循环播放,边听边对比,可暂停/停止;失败音色给出提示
34
+ - 面板顶栏的引擎运行状态 + 一键启停自 2.2.0 起已提供,本次无改动
35
+
36
+ ## [2.5.0] - 2026-08-29
37
+
38
+ ### 朗读净化补全(P0-1)
39
+ - 过滤 markdown 表格(数据行与分隔行),只读表格外的正文
40
+ - 超长文本保护:`tts_speak` 单段上限 6000 字符,朗读/自动朗读分段上限 30000 字符,超限给出友好提示
41
+ - 空文本判断与合成口径统一:清洗后为空(只有代码/链接/表格)的回复返回明确提示
42
+ - 新增单元测试(`npm test`,基于 node:test,零新增依赖):净化器与句切分器
43
+
44
+ ### 渐进分段播放(P1-1)
45
+ - 服务端新增 `TTSService.synthesizeSegments`:按句切分(中文句末标点、顿号 + 英文句点,单段 ≤ 800 字)逐段流式合成,段间 0 静音
46
+ - `/dsh-gsv-tts/speak` 返回可顺序播放的 URL 队列(`segments`),兼容旧单 URL 字段
47
+ - 前端播放器按 `<audio>` ended 事件自动续播下一段——长回复不再等整段合成完才出声
48
+
49
+ ### 朗读控件(P1-2)
50
+ - 朗读按钮新增 暂停 / 继续 / 停止 三键,作用于整个分段队列(记录当前段 + 段内时间)
51
+ - 显示朗读进度(已播 / 总时长 + 段序号)
52
+ - 高亮正在朗读的那条消息(呼吸边框)
53
+
54
+ ### 自动朗读打断(P0-2)
55
+ - 自动朗读改为"通知 → 前端按需合成播放":服务端递增 seq,前端轮询感知新回复
56
+ - 新回复到来时默认打断当前朗读(barge-in);设置中可关闭 `interruptOnNew`,朗读中跳过新回复避免叠音
57
+
58
+ ## [2.3.2] - 2026-08-28
59
+
60
+ - 对齐 `@deepseek-ai/dsh-tools` peer 依赖范围(`^0.1.0-rc.6`),与 lockfile 一致
61
+ - CI:`pnpm/action-setup` 从 `packageManager` 字段读取版本
62
+ - 文档:README 补充 CI/npm 徽章与 2.3.x 变更记录
63
+
64
+ ## [2.3.1] - 2026-08-28
65
+
66
+ - 补全 npm 发布元数据(`keywords`、`license`、`repository` 等)以支持插件市场收录
67
+ - 新增 GitHub Actions CI 与发布前 manifest 校验(`npm run verify`)
68
+ - 新增 `docs/PUBLISHING.md` 发布指南
69
+
70
+ ## [2.3.0] - 2026-08-27
71
+
72
+ - 真流式客户端改进与引擎兼容补丁
73
+ - 补充引擎安装与语音下载指南
74
+ - 新增界面截图
75
+ - README 双语重写,明确 npm / GitHub 双通道安装
76
+
77
+ ## [2.2.0] - 2026-08-26
78
+
79
+ - 声音设置面板(保存即热生效,无需重启)
80
+ - 引擎一键启停开关
81
+ - 🔊 朗读按钮(排除思考内容;引擎未启动时给出明确原因)
82
+ - 设置内帮助文档
83
+ - 音频同源短链接
84
+
85
+ ## [2.1.0] - 2026-08-25
86
+
87
+ - 音频改由 DSH Web 服务同源提供(不再用巨型 data URL)
88
+ - WAV 头/时长计算修复
89
+ - `prompt_text` 留空时 ASR 兜底
90
+ - `execFileSync` 消除命令注入风险
91
+ - `py -3` 支持
92
+ - 健康检查路径探测
93
+
94
+ ## [2.0.0] - 2026-08-24
95
+
96
+ - 首个正式版本:接入 GSV-TTS-Lite 本地 TTS 引擎
97
+ - 提供 `tts_speak` / `tts_list_voices` / `tts_health_check` / `tts_setup_engine` 四个工具
98
+
99
+ [2.6.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.5.0...v2.6.0
100
+ [2.5.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.2...v2.5.0
101
+ [2.3.2]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.1...v2.3.2
102
+ [2.3.1]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.0...v2.3.1
103
+ [2.3.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.2.0...v2.3.0
104
+ [2.2.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.1.0...v2.2.0
105
+ [2.1.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.0.0...v2.1.0
106
+ [2.0.0]: https://github.com/TaoruiLiu19/dsh-gsv/releases/tag/v2.0.0
package/CHANGELOG_EN.md CHANGED
@@ -1,93 +1,106 @@
1
- # Changelog
2
-
3
- All notable changes to dsh-gsv-tts are documented in this file. Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
-
5
- ## [3.0.0] - in development
6
-
7
- ### Voice Registry one-click install (P2)
8
- - Voice market: bundled offline manifest (`docs/voices.json`) or a custom remote source (`voiceRegistryUrl`, fetched server-side with no-cache)
9
- - Trust rule: trust = shipped with the plugin — only the bundled manifest with `trusted: true` installs without confirmation; **any remote manifest requires two-phase confirmation** (even if it self-reports trusted), and phase 1 downloads nothing
10
- - Three tools `tts_voice_registry` / `tts_voice_install` / `tts_voice_remove` plus same-origin HTTP routes `registry/{list,install,remove}`, sharing one core
11
- - Install: download → sha256 verification → size/extension whitelist → atomic staging under `<installDir>/voices/<id>/` → write back to `Config.voices` (id + source bookkeeping); failures leave no partial files and never touch config
12
- - Read-only managed voices: `source:'registry'` entries are read-only in the panel (uninstall only); removal matches by id, refuses custom voices, and clears a dangling `defaultVoice`
13
- - New "Voice Market" card in the panel: source/trust badge, preview (reuses /preview), two-phase confirmed install, delete-files confirm on uninstall
14
- - Unit tests wired into CI: manifest validation, trust boundaries, atomic writes, uninstall guards, path traversal
15
-
16
- ## [2.6.0] - 2026-08-29
17
-
18
- ### Settings panel enhancements (P1-3)
19
- - Per-voice "Preview" button: synthesizes a fixed preview sentence and plays it — **unsaved draft voices can be previewed too**, perfect for ear-based voice picking
20
- - New "Preview all (loop)": synthesizes every voice and loops through them for comparison, with pause/stop; failed voices are reported
21
- - The engine status bar + one-click start/stop at the top of the panel have been available since 2.2.0; unchanged in this release
22
-
23
- ## [2.5.0] - 2026-08-29
24
-
25
- ### Read-aloud text cleaning (P0-1)
26
- - Filter Markdown tables (data rows and separator rows); only non-table prose is read
27
- - Length guards with friendly messages: 6000 chars for `tts_speak`, 30000 for read-aloud/auto-read
28
- - Unified empty-text handling: replies containing only code/links/tables now get a clear hint
29
- - Added unit tests (`npm test`, built on node:test, zero new dependencies) for the cleaner and the segmenter
30
-
31
- ### Progressive segmented playback (P1-1)
32
- - New `TTSService.synthesizeSegments`: splits text into sentences (CJK enders/`、`/English periods, ≤ 800 chars per segment), synthesizes each, 0-gap stitching
33
- - `/dsh-gsv-tts/speak` now returns an ordered URL queue (`segments`); single-URL fields kept for compatibility
34
- - The client player auto-advances on `<audio>` `ended` — long replies start speaking without waiting for full synthesis
35
-
36
- ### Playback controls (P1-2)
37
- - Pause / Resume / Stop across the whole segment queue (current segment + in-segment position remembered)
38
- - Progress display (elapsed / total + segment index)
39
- - Highlight the message currently being read (pulsing outline)
40
-
41
- ### Auto-read barge-in (P0-2)
42
- - Auto-read is now "notify → client synthesizes on demand": the server bumps a seq, the client polls for new replies
43
- - New replies interrupt current playback by default; toggleable via the new `interruptOnNew` setting (skip while reading instead of overlapping)
44
-
45
- ## [2.3.2] - 2026-08-28
46
-
47
- - Align the `@deepseek-ai/dsh-tools` peer dependency range (`^0.1.0-rc.6`) with the lockfile
48
- - CI: `pnpm/action-setup` reads the version from the `packageManager` field
49
- - Docs: added CI/npm badges and 2.3.x changelog entries to the READMEs
50
-
51
- ## [2.3.1] - 2026-08-28
52
-
53
- - Completed npm publish metadata (`keywords`, `license`, `repository`, ...) for plugin-marketplace discovery
54
- - Added GitHub Actions CI and a pre-publish manifest check (`npm run verify`)
55
- - Added `docs/PUBLISHING.md`
56
-
57
- ## [2.3.0] - 2026-08-27
58
-
59
- - True-streaming client improvements and engine compatibility patch
60
- - Added engine-install and voice-download guides
61
- - Added UI screenshots
62
- - Bilingual README rewrite with clear npm/GitHub install paths
63
-
64
- ## [2.2.0] - 2026-08-26
65
-
66
- - Voice Settings panel (hot-applied, no restart needed)
67
- - One-click engine switch
68
- - 🔊 read-aloud button (excludes reasoning; clear error when the engine is off)
69
- - In-settings help documentation
70
- - Same-origin audio short links
71
-
72
- ## [2.1.0] - 2026-08-25
73
-
74
- - Same-origin audio served by the DSH web server (no more giant data URLs)
75
- - WAV header/duration calculation fixes
76
- - ASR fallback when `prompt_text` is empty
77
- - `execFileSync` (no shell injection)
78
- - `py -3` support
79
- - Health-check path probing
80
-
81
- ## [2.0.0] - 2026-08-24
82
-
83
- - Initial release: integrates the GSV-TTS-Lite local TTS engine
84
- - Ships four tools: `tts_speak` / `tts_list_voices` / `tts_health_check` / `tts_setup_engine`
85
-
86
- [2.6.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.5.0...v2.6.0
87
- [2.5.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.2...v2.5.0
88
- [2.3.2]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.1...v2.3.2
89
- [2.3.1]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.0...v2.3.1
90
- [2.3.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.2.0...v2.3.0
91
- [2.2.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.1.0...v2.2.0
92
- [2.1.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.0.0...v2.1.0
93
- [2.0.0]: https://github.com/TaoruiLiu19/dsh-gsv/releases/tag/v2.0.0
1
+ # Changelog
2
+
3
+ All notable changes to dsh-gsv-tts are documented in this file. Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
+
5
+ ## [4.0.0] - in development
6
+
7
+ ### Simple Mode (Edge cloud as a second provider)
8
+ - Dual-provider abstraction: `gsv` (local cloning / offline pro mode) + `edge` (Microsoft Edge cloud simple mode), dispatched by `config.provider` via `{kind, listVoices, stream, health}`
9
+ - **Migration guard**: existing users (no `provider` in settings) stay on `gsv` — voices unchanged; fresh installs default to `edge`; the choice is persisted
10
+ - Edge backed by `edge-tts-universal` (native streaming, automatic token refresh, error recovery, proxy); MP3 chunks pass through with zero transcoding (`audio/mpeg`), reusing AudioStore / segmented progressive playback / pause-download
11
+ - Voice list generated from `listVoices` with curated ordering + zh-CN/en filtering (20+ Chinese voices incl. Xiaoxiao/Yunxi/Yunye, plus Aria & friends)
12
+ - **Layered health**: library-level error recovery / token refresh absorbs flicker; `health()` = 1-second test synthesis with backoff (≤1 per 60s, 30→60→120s, reset on success)
13
+ - Settings panel: mode-switch tabs (Quick / Local Pro) + quality badges (🌐 Cloud / 🖥️ Local·Offline) + provider-aware voice dropdown + cloud health line with downgrade guidance
14
+ - New routes `/provider/voices` `/provider/health`; `tts_speak` / `tts_list_voices` dispatch per provider
15
+ - `quotaDaily` config field (unlimited by default; guidance copy only; hard counting deferred to 4.x)
16
+ - Unit tests wired into CI: migration branches, Edge MP3 passthrough, curated voice filtering, health backoff, TTSService dispatch persistence
17
+
18
+ ## [3.0.0] - 2026-08-30
19
+
20
+ ### Voice Registry one-click install (P2)
21
+ - Voice market: bundled offline manifest (`docs/voices.json`) or a custom remote source (`voiceRegistryUrl`, fetched server-side with no-cache)
22
+ - Trust rule: trust = shipped with the plugin — only the bundled manifest with `trusted: true` installs without confirmation; **any remote manifest requires two-phase confirmation** (even if it self-reports trusted), and phase 1 downloads nothing
23
+ - Three tools `tts_voice_registry` / `tts_voice_install` / `tts_voice_remove` plus same-origin HTTP routes `registry/{list,install,remove}`, sharing one core
24
+ - Install: download → sha256 verification → size/extension whitelist → atomic staging under `<installDir>/voices/<id>/` → write back to `Config.voices` (id + source bookkeeping); failures leave no partial files and never touch config
25
+ - Read-only managed voices: `source:'registry'` entries are read-only in the panel (uninstall only); removal matches by id, refuses custom voices, and clears a dangling `defaultVoice`
26
+ - New "Voice Market" card in the panel: source/trust badge, preview (reuses /preview), two-phase confirmed install, delete-files confirm on uninstall
27
+ - Unit tests wired into CI: manifest validation, trust boundaries, atomic writes, uninstall guards, path traversal
28
+
29
+ ## [2.6.0] - 2026-08-29
30
+
31
+ ### Settings panel enhancements (P1-3)
32
+ - Per-voice "Preview" button: synthesizes a fixed preview sentence and plays it — **unsaved draft voices can be previewed too**, perfect for ear-based voice picking
33
+ - New "Preview all (loop)": synthesizes every voice and loops through them for comparison, with pause/stop; failed voices are reported
34
+ - The engine status bar + one-click start/stop at the top of the panel have been available since 2.2.0; unchanged in this release
35
+
36
+ ## [2.5.0] - 2026-08-29
37
+
38
+ ### Read-aloud text cleaning (P0-1)
39
+ - Filter Markdown tables (data rows and separator rows); only non-table prose is read
40
+ - Length guards with friendly messages: 6000 chars for `tts_speak`, 30000 for read-aloud/auto-read
41
+ - Unified empty-text handling: replies containing only code/links/tables now get a clear hint
42
+ - Added unit tests (`npm test`, built on node:test, zero new dependencies) for the cleaner and the segmenter
43
+
44
+ ### Progressive segmented playback (P1-1)
45
+ - New `TTSService.synthesizeSegments`: splits text into sentences (CJK enders/`、`/English periods, ≤ 800 chars per segment), synthesizes each, 0-gap stitching
46
+ - `/dsh-gsv-tts/speak` now returns an ordered URL queue (`segments`); single-URL fields kept for compatibility
47
+ - The client player auto-advances on `<audio>` `ended` — long replies start speaking without waiting for full synthesis
48
+
49
+ ### Playback controls (P1-2)
50
+ - Pause / Resume / Stop across the whole segment queue (current segment + in-segment position remembered)
51
+ - Progress display (elapsed / total + segment index)
52
+ - Highlight the message currently being read (pulsing outline)
53
+
54
+ ### Auto-read barge-in (P0-2)
55
+ - Auto-read is now "notify → client synthesizes on demand": the server bumps a seq, the client polls for new replies
56
+ - New replies interrupt current playback by default; toggleable via the new `interruptOnNew` setting (skip while reading instead of overlapping)
57
+
58
+ ## [2.3.2] - 2026-08-28
59
+
60
+ - Align the `@deepseek-ai/dsh-tools` peer dependency range (`^0.1.0-rc.6`) with the lockfile
61
+ - CI: `pnpm/action-setup` reads the version from the `packageManager` field
62
+ - Docs: added CI/npm badges and 2.3.x changelog entries to the READMEs
63
+
64
+ ## [2.3.1] - 2026-08-28
65
+
66
+ - Completed npm publish metadata (`keywords`, `license`, `repository`, ...) for plugin-marketplace discovery
67
+ - Added GitHub Actions CI and a pre-publish manifest check (`npm run verify`)
68
+ - Added `docs/PUBLISHING.md`
69
+
70
+ ## [2.3.0] - 2026-08-27
71
+
72
+ - True-streaming client improvements and engine compatibility patch
73
+ - Added engine-install and voice-download guides
74
+ - Added UI screenshots
75
+ - Bilingual README rewrite with clear npm/GitHub install paths
76
+
77
+ ## [2.2.0] - 2026-08-26
78
+
79
+ - Voice Settings panel (hot-applied, no restart needed)
80
+ - One-click engine switch
81
+ - 🔊 read-aloud button (excludes reasoning; clear error when the engine is off)
82
+ - In-settings help documentation
83
+ - Same-origin audio short links
84
+
85
+ ## [2.1.0] - 2026-08-25
86
+
87
+ - Same-origin audio served by the DSH web server (no more giant data URLs)
88
+ - WAV header/duration calculation fixes
89
+ - ASR fallback when `prompt_text` is empty
90
+ - `execFileSync` (no shell injection)
91
+ - `py -3` support
92
+ - Health-check path probing
93
+
94
+ ## [2.0.0] - 2026-08-24
95
+
96
+ - Initial release: integrates the GSV-TTS-Lite local TTS engine
97
+ - Ships four tools: `tts_speak` / `tts_list_voices` / `tts_health_check` / `tts_setup_engine`
98
+
99
+ [2.6.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.5.0...v2.6.0
100
+ [2.5.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.2...v2.5.0
101
+ [2.3.2]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.1...v2.3.2
102
+ [2.3.1]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.0...v2.3.1
103
+ [2.3.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.2.0...v2.3.0
104
+ [2.2.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.1.0...v2.2.0
105
+ [2.1.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.0.0...v2.1.0
106
+ [2.0.0]: https://github.com/TaoruiLiu19/dsh-gsv/releases/tag/v2.0.0