dsh-gsv-tts 2.3.1 → 2.3.3

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 ADDED
@@ -0,0 +1,51 @@
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
+ ## [2.3.2] - 2026-08-28
6
+
7
+ - 对齐 `@deepseek-ai/dsh-tools` peer 依赖范围(`^0.1.0-rc.6`),与 lockfile 一致
8
+ - CI:`pnpm/action-setup` 从 `packageManager` 字段读取版本
9
+ - 文档:README 补充 CI/npm 徽章与 2.3.x 变更记录
10
+
11
+ ## [2.3.1] - 2026-08-28
12
+
13
+ - 补全 npm 发布元数据(`keywords`、`license`、`repository` 等)以支持插件市场收录
14
+ - 新增 GitHub Actions CI 与发布前 manifest 校验(`npm run verify`)
15
+ - 新增 `docs/PUBLISHING.md` 发布指南
16
+
17
+ ## [2.3.0] - 2026-08-27
18
+
19
+ - 真流式客户端改进与引擎兼容补丁
20
+ - 补充引擎安装与语音下载指南
21
+ - 新增界面截图
22
+ - README 双语重写,明确 npm / GitHub 双通道安装
23
+
24
+ ## [2.2.0] - 2026-08-26
25
+
26
+ - 声音设置面板(保存即热生效,无需重启)
27
+ - 引擎一键启停开关
28
+ - 🔊 朗读按钮(排除思考内容;引擎未启动时给出明确原因)
29
+ - 设置内帮助文档
30
+ - 音频同源短链接
31
+
32
+ ## [2.1.0] - 2026-08-25
33
+
34
+ - 音频改由 DSH Web 服务同源提供(不再用巨型 data URL)
35
+ - WAV 头/时长计算修复
36
+ - `prompt_text` 留空时 ASR 兜底
37
+ - `execFileSync` 消除命令注入风险
38
+ - `py -3` 支持
39
+ - 健康检查路径探测
40
+
41
+ ## [2.0.0] - 2026-08-24
42
+
43
+ - 首个正式版本:接入 GSV-TTS-Lite 本地 TTS 引擎
44
+ - 提供 `tts_speak` / `tts_list_voices` / `tts_health_check` / `tts_setup_engine` 四个工具
45
+
46
+ [2.3.2]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.1...v2.3.2
47
+ [2.3.1]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.0...v2.3.1
48
+ [2.3.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.2.0...v2.3.0
49
+ [2.2.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.1.0...v2.2.0
50
+ [2.1.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.0.0...v2.1.0
51
+ [2.0.0]: https://github.com/TaoruiLiu19/dsh-gsv/releases/tag/v2.0.0
@@ -0,0 +1,51 @@
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
+ ## [2.3.2] - 2026-08-28
6
+
7
+ - Align the `@deepseek-ai/dsh-tools` peer dependency range (`^0.1.0-rc.6`) with the lockfile
8
+ - CI: `pnpm/action-setup` reads the version from the `packageManager` field
9
+ - Docs: added CI/npm badges and 2.3.x changelog entries to the READMEs
10
+
11
+ ## [2.3.1] - 2026-08-28
12
+
13
+ - Completed npm publish metadata (`keywords`, `license`, `repository`, ...) for plugin-marketplace discovery
14
+ - Added GitHub Actions CI and a pre-publish manifest check (`npm run verify`)
15
+ - Added `docs/PUBLISHING.md`
16
+
17
+ ## [2.3.0] - 2026-08-27
18
+
19
+ - True-streaming client improvements and engine compatibility patch
20
+ - Added engine-install and voice-download guides
21
+ - Added UI screenshots
22
+ - Bilingual README rewrite with clear npm/GitHub install paths
23
+
24
+ ## [2.2.0] - 2026-08-26
25
+
26
+ - Voice Settings panel (hot-applied, no restart needed)
27
+ - One-click engine switch
28
+ - 🔊 read-aloud button (excludes reasoning; clear error when the engine is off)
29
+ - In-settings help documentation
30
+ - Same-origin audio short links
31
+
32
+ ## [2.1.0] - 2026-08-25
33
+
34
+ - Same-origin audio served by the DSH web server (no more giant data URLs)
35
+ - WAV header/duration calculation fixes
36
+ - ASR fallback when `prompt_text` is empty
37
+ - `execFileSync` (no shell injection)
38
+ - `py -3` support
39
+ - Health-check path probing
40
+
41
+ ## [2.0.0] - 2026-08-24
42
+
43
+ - Initial release: integrates the GSV-TTS-Lite local TTS engine
44
+ - Ships four tools: `tts_speak` / `tts_list_voices` / `tts_health_check` / `tts_setup_engine`
45
+
46
+ [2.3.2]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.1...v2.3.2
47
+ [2.3.1]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.3.0...v2.3.1
48
+ [2.3.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.2.0...v2.3.0
49
+ [2.2.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.1.0...v2.2.0
50
+ [2.1.0]: https://github.com/TaoruiLiu19/dsh-gsv/compare/v2.0.0...v2.1.0
51
+ [2.0.0]: https://github.com/TaoruiLiu19/dsh-gsv/releases/tag/v2.0.0
package/README.md CHANGED
@@ -1,31 +1,37 @@
1
1
  # dsh-gsv-tts
2
2
 
3
- DSH(DeepSeek Harness)插件,接入 [GSV-TTS-Lite](https://github.com/chinokikiss/GSV-TTS-Lite) 本地 TTS 服务:音色克隆、流式合成、自动朗读、一键朗读、引擎一键启停。
3
+ > 为 DSH(DeepSeek Harness)接入 [GSV-TTS-Lite](https://github.com/chinokikiss/GSV-TTS-Lite) 本地 TTS 引擎 —— 音色克隆、流式合成、自动朗读、一键朗读、引擎一键启停,全程本地运行。
4
4
 
5
- English README: [README_EN.md](README_EN.md)
5
+ ![CI](https://img.shields.io/github/actions/workflow/status/TaoruiLiu19/dsh-gsv/ci.yml?branch=master&label=CI&logo=github)
6
+ ![npm](https://img.shields.io/npm/v/dsh-gsv-tts)
7
+ ![Downloads](https://img.shields.io/npm/dt/dsh-gsv-tts)
8
+ ![License](https://img.shields.io/npm/l/dsh-gsv-tts)
9
+ [![Listed on awesome-dsh-plugin](https://img.shields.io/badge/Listed%20on-awesome--dsh--plugin.com-8B5CF6?style=flat-square)](https://awesome-dsh-plugin.com/p/TaoruiLiu19/dsh-gsv/)
6
10
 
7
- ## 功能
11
+ English README: [README_EN.md](README_EN.md) · 变更记录: [CHANGELOG.md](CHANGELOG.md)
8
12
 
9
- - **声音设置面板**:设置 → 声音设置,可视化配置引擎、音色、自动朗读等,**保存即热生效**(无需重启)
10
- - **引擎开关**:一键启动/停止本地 GSV-TTS-Lite 引擎,默认关闭
11
- - **朗读按钮**:每条助手消息的复制/点赞旁有 🔊 按钮,朗读该条结果(自动排除思考内容);引擎未启动时给出明确原因
12
- - **自动朗读**:开启后自动对助手回复合成语音
13
- - **语音合成工具**:`tts_speak`(流式合成,返回同源短链接)、`tts_list_voices`、`tts_health_check`、`tts_setup_engine`
14
- - **音频投递**:合成音频落盘为 WAV,经 DSH Web 服务同源短链接提供(模型上下文不再被巨型 data URL 撑爆)
13
+ ---
15
14
 
16
- ## 安装
15
+ ## ✨ 功能亮点
17
16
 
18
- 两种方式任选其一,然后在设置中启用:
17
+ - 🎙️ **音色克隆**:按参考音频克隆目标音色,`tts_speak` 按名称选用
18
+ - ⚡ **真流式合成**:SSE 逐块合成,首块到达即推送,低首包延迟
19
+ - 🔊 **一键朗读**:每条助手消息旁的 🔊 按钮直接朗读(自动排除思考内容)
20
+ - 🔁 **自动朗读**:开启后自动为助手回复合成语音
21
+ - 🎛️ **声音设置面板**:设置 → 声音设置,可视化配置,**保存即热生效**(无需重启)
22
+ - 🚀 **引擎一键启停**:一键启动/停止本地 GSV-TTS-Lite 引擎,模型加载约 15~90 秒
23
+ - 🛠️ **一键安装引擎**:`tts_setup_engine` 自动检测 Python、安装依赖、克隆仓库并启动服务
24
+ - 🔗 **同源音频短链接**:合成音频落盘为 WAV,经 DSH Web 服务同源提供,不再撑爆模型上下文
25
+
26
+ ## 📦 安装
19
27
 
20
- ### 方式一:从 npm 安装
28
+ 两种方式任选其一,然后在设置中启用:
21
29
 
22
30
  ```bash
31
+ # 方式一:从 npm 安装
23
32
  dsh plugin --profile web add dsh-gsv-tts
24
- ```
25
-
26
- ### 方式二:从 GitHub 安装
27
33
 
28
- ```bash
34
+ # 方式二:从 GitHub 安装
29
35
  dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
30
36
  ```
31
37
 
@@ -35,14 +41,31 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
35
41
 
36
42
  > 依赖 DSH 的 `webServer` 服务(Web / Desktop profile 自带)提供音频下载;`settings` 服务提供设置面板。无这些服务的环境仅保留工具能力。
37
43
 
38
- ## 快速开始
44
+ ## 🚀 快速开始
39
45
 
40
46
  1. **安装引擎**:让 agent 调用 `tts_setup_engine` 自动安装(或见下方手动安装)
41
- 2. **启动引擎**:设置 → 声音设置 → 打开"启动引擎"开关,等待状态变为"运行中"(模型加载约 15~90 秒)
47
+ 2. **启动引擎**:设置 → 声音设置 → 打开"启动引擎"开关,等待状态变为"运行中"
42
48
  3. **添加音色**:设置 → 声音设置 → "音色预设" → 添加音色 → 填写四字段 → 保存
43
49
  4. **朗读**:点任意助手消息旁的 🔊,或让 agent 调用 `tts_speak`
44
50
 
45
- ## 截图
51
+ ## 🏗️ 系统架构
52
+
53
+ ![dsh-gsv-tts 系统构成与数据流](docs/images/architecture.png)
54
+
55
+ > 📖 交互式架构图:[打开 dsh-gsv-tts.architecture.html](docs/architecture/dsh-gsv-tts.architecture.html)(支持缩放、聚焦、主题切换)
56
+
57
+ **两条调用路径**:
58
+
59
+ - 🔊 **朗读主链路(经 webServer)**:用户点击 🔊 → DSH Web 客户端 → `webServer` 的 `/speak` 路由 → 插件从会话中提取消息文本 → `TTSService` 流式请求引擎 → 引擎 SSE 逐块返回音频 → `AudioStore` 拼接 WAV 落盘 → 同源短链接回传浏览器播放。
60
+ - 🤖 **Agent 工具调用(宿主内直连)**:Agent 调用 `tts_speak` 等工具时,由宿主进程内 tools 服务**直接**执行插件逻辑,**不经 webServer HTTP 网关**——图中以虚线表示,与 🔊 按钮路径区分。
61
+
62
+ | 构成 | 说明 |
63
+ |------|------|
64
+ | DSH 应用(DeepSeek Harness) | 插件宿主:Web 客户端、webServer、settings 服务 |
65
+ | dsh-gsv-tts 插件 | `TTSService`(流式合成)/ `AudioStore`(WAV 落盘)/ 引擎管理(启停·安装·健康检查) |
66
+ | GSV-TTS-Lite 本地引擎 | 本机 Python 进程,FastAPI :9880,真流式 `/tts/stream` |
67
+
68
+ ## 📸 截图
46
69
 
47
70
  ![声音设置面板](docs/images/settings-voice.png)
48
71
 
@@ -56,7 +79,7 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
56
79
 
57
80
  *引擎启动后的"运行中"状态*
58
81
 
59
- ## 下载安装 GSV-TTS-Lite 引擎
82
+ ## 🔧 下载安装 GSV-TTS-Lite 引擎
60
83
 
61
84
  ### 方式一:自动安装(推荐)
62
85
 
@@ -75,7 +98,7 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
75
98
 
76
99
  > 引擎示例音频位于 `<仓库>/examples/`(`laffey.mp3`、`AnAn.ogg`),可直接用作测试音色。
77
100
 
78
- ## 添加音色
101
+ ## 🎙️ 添加音色
79
102
 
80
103
  1. 打开 设置 → 声音设置
81
104
  2. "音色预设"下点击"添加音色"
@@ -93,7 +116,7 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
93
116
 
94
117
  > 参考音频路径必须是**引擎服务端能访问的本地路径或可访问 URL**。
95
118
 
96
- ## 声音设置说明
119
+ ## ⚙️ 声音设置说明
97
120
 
98
121
  | 字段 | 说明 | 默认值 |
99
122
  |------|------|--------|
@@ -107,7 +130,7 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
107
130
 
108
131
  配置保存在 DSH 的 settings(`~/.dsh/settings.yaml` 的 `dsh-gsv-tts:` 段),修改后插件热生效。
109
132
 
110
- ## 工具列表
133
+ ## 🧰 工具列表
111
134
 
112
135
  | 工具 | 功能 |
113
136
  |------|------|
@@ -116,14 +139,14 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
116
139
  | `tts_health_check` | 检查引擎/API/Python/仓库状态 |
117
140
  | `tts_setup_engine` | 一键安装 GSV-TTS-Lite 引擎 |
118
141
 
119
- ## 常见问题
142
+ ## ❓ 常见问题
120
143
 
121
144
  - **引擎未启动**:设置 → 声音设置 → 打开开关(模型加载约 15~90 秒)
122
145
  - **模型缺失**:首次启动会提示,把模型放入 `models` 目录
123
146
  - **朗读按钮报"语音引擎未启动"**:先到 声音设置 启动引擎
124
147
  - **参考音频不可用**:必须是引擎服务端可访问的本地路径或 URL
125
148
 
126
- ## 技术栈
149
+ ## 🛠️ 技术栈
127
150
 
128
151
  - DSH 插件框架:Cordis + `@deepseek-ai/dsh-tools`
129
152
  - 配置 Schema:`@deepseek-ai/schemastery`
@@ -131,7 +154,7 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
131
154
  - TTS 引擎:GSV-TTS-Lite 0.4.7
132
155
  - 语言:TypeScript(宿主)/ 手写客户端 bundle(浏览器)/ Python(流式 API)
133
156
 
134
- ## 构建与发布
157
+ ## 📦 构建与发布
135
158
 
136
159
  ```bash
137
160
  pnpm install
@@ -141,14 +164,23 @@ pnpm publish # 发布到 npm(files: lib, scripts, cordis.patch.yml)
141
164
 
142
165
  从 GitHub 安装会自动执行 `prepare` 脚本编译;`lib/client.js` 为手写客户端 bundle,随仓库发布。
143
166
 
144
- ## 变更记录
167
+ 更多发布细节见 [docs/PUBLISHING.md](docs/PUBLISHING.md)。
168
+
169
+ ## 📜 变更记录
145
170
 
146
- - **2.2.0**:声音设置面板(保存即热生效);引擎一键启停开关;🔊 朗读按钮(排除思考,引擎未启动给出原因);设置内帮助文档;音频同源短链接
147
- - **2.1.0**:音频改由 DSH Web 服务同源提供(不再用巨型 data URL);WAV 头/时长计算修复;`prompt_text` 留空 ASR 兜底;`execFileSync` 消除命令注入;`py -3` 支持;健康检查路径探测
171
+ 完整更新历史见 [CHANGELOG.md](CHANGELOG.md)。
148
172
 
149
- ## 已知限制
173
+ ## ⚠️ 已知限制
150
174
 
151
175
  - 播放为 markdown 链接点击播放;内嵌 `<audio>` 需客户端扩展(规划中)
152
176
  - 合成音频存于系统临时目录(`%TEMP%/dsh-gsv-tts`),启动清空、会话内最多 200 个
153
177
  - `tts_setup_engine` 通过 `child_process` 执行 pip/git,需环境有对应工具
154
178
  - `promptText` 留空依赖引擎 ASR 能力(能力探测),不支持时合成报错
179
+
180
+ ## 📄 License
181
+
182
+ 本项目以 **MIT 许可证** 开源发布。
183
+
184
+ 版权所有 © 2026 TaoruiLiu19。在软件的副本或主要部分中包含上述版权声明和本许可声明的前提下,任何人可免费复制、修改、合并、发布、分发、再授权及/或出售本软件副本。
185
+
186
+ 本项目按"**原样**"提供,**不附带任何明示或默示保证**。完整许可条款见 [LICENSE](LICENSE) 文件。
package/README_EN.md CHANGED
@@ -1,31 +1,37 @@
1
1
  # dsh-gsv-tts
2
2
 
3
- A DSH (DeepSeek Harness) plugin that integrates the [GSV-TTS-Lite](https://github.com/chinokikiss/GSV-TTS-Lite) local TTS engine: voice cloning, streaming synthesis, auto-read, one-click read-aloud, and one-click engine control.
3
+ > A DSH (DeepSeek Harness) plugin that integrates the [GSV-TTS-Lite](https://github.com/chinokikiss/GSV-TTS-Lite) local TTS engine — voice cloning, streaming synthesis, auto-read, one-click read-aloud, and one-click engine control, all running locally.
4
4
 
5
- 中文 README: [README.md](README.md)
5
+ ![CI](https://img.shields.io/github/actions/workflow/status/TaoruiLiu19/dsh-gsv/ci.yml?branch=master&label=CI&logo=github)
6
+ ![npm](https://img.shields.io/npm/v/dsh-gsv-tts)
7
+ ![Downloads](https://img.shields.io/npm/dt/dsh-gsv-tts)
8
+ ![License](https://img.shields.io/npm/l/dsh-gsv-tts)
9
+ [![Listed on awesome-dsh-plugin](https://img.shields.io/badge/Listed%20on-awesome--dsh--plugin.com-8B5CF6?style=flat-square)](https://awesome-dsh-plugin.com/p/TaoruiLiu19/dsh-gsv/)
6
10
 
7
- ## Features
11
+ 中文 README: [README.md](README.md) · Changelog: [CHANGELOG_EN.md](CHANGELOG_EN.md)
8
12
 
9
- - **Voice Settings panel**: Settings → Voice Settings — configure the engine, voices, auto-read, etc., with **hot-applied changes** (no restart needed)
10
- - **Engine switch**: start/stop the local GSV-TTS-Lite engine with one toggle (off by default)
11
- - **Read-aloud button**: a 🔊 button next to copy/like on every assistant message reads that result aloud (thinking/reasoning excluded); when the engine is off it explains why
12
- - **Auto-read**: automatically synthesize assistant replies when enabled
13
- - **TTS tools**: `tts_speak` (streaming, returns a same-origin short link), `tts_list_voices`, `tts_health_check`, `tts_setup_engine`
14
- - **Audio delivery**: synthesized audio is saved as WAV and served through the DSH web server as a same-origin short link (no more giant data URLs in model context)
13
+ ---
15
14
 
16
- ## Installation
15
+ ## ✨ Features
17
16
 
18
- Choose one of the two methods, then enable it in Settings:
17
+ - 🎙️ **Voice cloning**: clone a target voice from reference audio; selectable by name in `tts_speak`
18
+ - ⚡ **True streaming synthesis**: SSE chunk-by-chunk synthesis — the first chunk is pushed as soon as it arrives
19
+ - 🔊 **One-click read-aloud**: a 🔊 button next to every assistant message (reasoning content excluded)
20
+ - 🔁 **Auto-read**: automatically synthesize assistant replies when enabled
21
+ - 🎛️ **Voice Settings panel**: Settings → Voice Settings — configure everything visually, **hot-applied** (no restart)
22
+ - 🚀 **One-click engine control**: start/stop the local GSV-TTS-Lite engine (model loading ~15–90 s)
23
+ - 🛠️ **One-click engine setup**: `tts_setup_engine` auto-detects Python, installs deps, clones the repo, and starts the service
24
+ - 🔗 **Same-origin audio short links**: audio is saved as WAV and served by the DSH web server — no more giant data URLs in the model context
25
+
26
+ ## 📦 Installation
19
27
 
20
- ### Option 1: Install from npm
28
+ Choose one of the two methods, then enable it in Settings:
21
29
 
22
30
  ```bash
31
+ # Option 1: Install from npm
23
32
  dsh plugin --profile web add dsh-gsv-tts
24
- ```
25
-
26
- ### Option 2: Install from GitHub
27
33
 
28
- ```bash
34
+ # Option 2: Install from GitHub
29
35
  dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
30
36
  ```
31
37
 
@@ -35,14 +41,31 @@ After installing, restart DSH. The tools register automatically and a "Voice Set
35
41
 
36
42
  > Requires the DSH `webServer` service (bundled with the Web/Desktop profiles) for audio delivery and the `settings` service for the settings panel. Environments without these services keep only the tool capabilities.
37
43
 
38
- ## Quick Start
44
+ ## 🚀 Quick Start
39
45
 
40
46
  1. **Install the engine**: ask the agent to call `tts_setup_engine` (or install manually below)
41
- 2. **Start the engine**: Settings → Voice Settings → toggle "Start engine" on and wait until it shows "Running" (model loading takes ~15–90 s)
47
+ 2. **Start the engine**: Settings → Voice Settings → toggle "Start engine" on and wait until it shows "Running"
42
48
  3. **Add a voice**: Settings → Voice Settings → "Voice presets" → Add voice → fill in the four fields → Save
43
49
  4. **Read aloud**: click the 🔊 button next to any assistant message, or ask the agent to call `tts_speak`
44
50
 
45
- ## Screenshots
51
+ ## 🏗️ Architecture
52
+
53
+ ![dsh-gsv-tts system composition & data flow](docs/images/architecture.png)
54
+
55
+ > 📖 Interactive diagram: [open dsh-gsv-tts.architecture.html](docs/architecture/dsh-gsv-tts.architecture.html) (zoom, focus, theme switching)
56
+
57
+ **Two call paths**:
58
+
59
+ - 🔊 **Read-aloud path (via webServer)**: user clicks 🔊 → DSH Web client → the `webServer` `/speak` route → the plugin extracts the message text from the session → `TTSService` streams the synthesis request → the engine returns audio chunks over SSE → `AudioStore` assembles and saves a WAV → a same-origin short link is returned to the browser for playback.
60
+ - 🤖 **Agent tool calls (in-process, direct)**: when the agent calls `tts_speak` and friends, the host's tools service executes the plugin logic **directly in-process — no webServer HTTP gateway involved**. Shown as dashed lines to distinguish from the 🔊 button path.
61
+
62
+ | Part | Description |
63
+ |------|-------------|
64
+ | DSH app (DeepSeek Harness) | Plugin host: Web client, webServer, settings service |
65
+ | dsh-gsv-tts plugin | `TTSService` (streaming synthesis) / `AudioStore` (WAV storage) / engine manager (start-stop · setup · health check) |
66
+ | GSV-TTS-Lite local engine | Local Python process, FastAPI :9880, true streaming `/tts/stream` |
67
+
68
+ ## 📸 Screenshots
46
69
 
47
70
  ![Voice Settings panel](docs/images/settings-voice.png)
48
71
 
@@ -56,7 +79,7 @@ After installing, restart DSH. The tools register automatically and a "Voice Set
56
79
 
57
80
  *The "Running" state after the engine starts*
58
81
 
59
- ## Installing the GSV-TTS-Lite Engine
82
+ ## 🔧 Installing the GSV-TTS-Lite Engine
60
83
 
61
84
  ### Option 1: Automatic (recommended)
62
85
 
@@ -75,7 +98,7 @@ Ask the agent to call `tts_setup_engine`. It automatically: detects Python → i
75
98
 
76
99
  > Example audio lives in `<repo>/examples/` (`laffey.mp3`, `AnAn.ogg`) — usable as test voices.
77
100
 
78
- ## Adding a Voice
101
+ ## 🎙️ Adding a Voice
79
102
 
80
103
  1. Open Settings → Voice Settings
81
104
  2. Under "Voice presets", click "Add voice"
@@ -93,7 +116,7 @@ Ask the agent to call `tts_setup_engine`. It automatically: detects Python → i
93
116
 
94
117
  > Reference audio paths must be **local paths accessible from the engine host or reachable URLs**.
95
118
 
96
- ## Voice Settings Reference
119
+ ## ⚙️ Voice Settings Reference
97
120
 
98
121
  | Field | Description | Default |
99
122
  |-------|-------------|---------|
@@ -107,7 +130,7 @@ Ask the agent to call `tts_setup_engine`. It automatically: detects Python → i
107
130
 
108
131
  Config is stored in DSH settings (the `dsh-gsv-tts:` section of `~/.dsh/settings.yaml`) and hot-applied on change.
109
132
 
110
- ## Tools
133
+ ## 🧰 Tools
111
134
 
112
135
  | Tool | Purpose |
113
136
  |------|---------|
@@ -116,14 +139,14 @@ Config is stored in DSH settings (the `dsh-gsv-tts:` section of `~/.dsh/settings
116
139
  | `tts_health_check` | Check engine/API/Python/repo status |
117
140
  | `tts_setup_engine` | One-click GSV-TTS-Lite engine installation |
118
141
 
119
- ## FAQ
142
+ ## ❓ FAQ
120
143
 
121
144
  - **Engine not running**: Settings → Voice Settings → toggle on (model loading takes ~15–90 s)
122
145
  - **Models missing**: the first start will warn; put the models into the `models` directory
123
146
  - **The read button says "engine not started"**: start the engine in Voice Settings first
124
147
  - **Reference audio unavailable**: use a local path accessible from the engine host or a reachable URL
125
148
 
126
- ## Tech Stack
149
+ ## 🛠️ Tech Stack
127
150
 
128
151
  - DSH plugin framework: Cordis + `@deepseek-ai/dsh-tools`
129
152
  - Config schema: `@deepseek-ai/schemastery`
@@ -131,7 +154,7 @@ Config is stored in DSH settings (the `dsh-gsv-tts:` section of `~/.dsh/settings
131
154
  - TTS engine: GSV-TTS-Lite 0.4.7
132
155
  - Languages: TypeScript (host) / hand-written client bundle (browser) / Python (streaming API)
133
156
 
134
- ## Build & Publish
157
+ ## 📦 Build & Publish
135
158
 
136
159
  ```bash
137
160
  pnpm install
@@ -141,14 +164,23 @@ pnpm publish # publish to npm (files: lib, scripts, cordis.patch.yml)
141
164
 
142
165
  Installing from GitHub runs the `prepare` script automatically; `lib/client.js` is a hand-written client bundle shipped with the repo.
143
166
 
144
- ## Changelog
167
+ See [docs/PUBLISHING.md](docs/PUBLISHING.md) for publishing details.
168
+
169
+ ## 📜 Changelog
145
170
 
146
- - **2.2.0**: Voice Settings panel (hot-applied); one-click engine switch; 🔊 read-aloud button (excludes reasoning; clear error when the engine is off); in-settings help; same-origin audio short links
147
- - **2.1.0**: same-origin audio via the DSH web server (no more giant data URLs); WAV header/duration fixes; `prompt_text` ASR fallback; `execFileSync` (no shell injection); `py -3` support; health-check path probing
171
+ Full release history: [CHANGELOG_EN.md](CHANGELOG_EN.md).
148
172
 
149
- ## Known Limitations
173
+ ## ⚠️ Known Limitations
150
174
 
151
175
  - Playback is a clickable markdown link; inline `<audio>` playback needs a client extension (planned)
152
176
  - Generated audio lives in the system temp dir (`%TEMP%/dsh-gsv-tts`), purged on startup, capped at 200 files per session
153
177
  - `tts_setup_engine` shells out to pip/git; those tools must be available
154
178
  - Empty `promptText` relies on the engine's ASR capability (capability-probed); synthesis fails with a clear error when unsupported
179
+
180
+ ## 📄 License
181
+
182
+ This project is open-sourced under the **MIT license**.
183
+
184
+ Copyright (c) 2026 TaoruiLiu19. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files, to deal in the Software without restriction, subject to the inclusion of the above copyright notice and this permission notice in all copies or substantial portions of the Software.
185
+
186
+ The Software is provided **"AS IS"**, **without warranty of any kind, express or implied**. See the [LICENSE](LICENSE) file for the full terms.
@@ -0,0 +1,21 @@
1
+ # 发布指南
2
+
3
+ 本插件通过 npm 分发。发布前 `npm run verify` 会自动校验必须的元数据;CI 也会在每次 push 时跑类型检查与构建。
4
+
5
+ ## 被插件市场发现所需的元数据
6
+
7
+ `package.json` 必须同时满足:
8
+
9
+ - `dsh.bundle.patch` 存在——这是 `dsh plugin add` 能否安装的判断依据(只声明 `dsh.client` 不能安装)。
10
+ - `keywords` 包含 `"dsh-plugin"`——基于 npm 的市场(dshbase 等)通过 `npm search dsh-plugin` 发现插件。
11
+ - `repository` / `license` / `homepage` / `bugs` 完整——部分爬虫用 `repository` 关联 npm 包与源码仓库。
12
+
13
+ ## 版本发布步骤
14
+
15
+ ```sh
16
+ npm version minor # 升版本号(会自动触发 verify)
17
+ git push origin master --tags
18
+ npm publish
19
+ ```
20
+
21
+ 发布后 npm 会把 `latest` 标签切到新版本,搜索索引在几分钟到几小时内刷新。
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-gsv-tts",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "DSH plugin for GSV-TTS-Lite: voice presets, auto-read, engine setup assistant, read-aloud button, and settings panel",
5
5
  "keywords": [
6
6
  "dsh-plugin",
@@ -38,9 +38,12 @@
38
38
  "lib",
39
39
  "scripts",
40
40
  "cordis.patch.yml",
41
- "docs",
41
+ "docs/images",
42
+ "docs/PUBLISHING.md",
42
43
  "README.md",
43
- "README_EN.md"
44
+ "README_EN.md",
45
+ "CHANGELOG.md",
46
+ "CHANGELOG_EN.md"
44
47
  ],
45
48
  "dsh": {
46
49
  "bundle": {
@@ -61,10 +64,12 @@
61
64
  "scripts": {
62
65
  "build": "tsc",
63
66
  "prepare": "tsc",
67
+ "verify": "node scripts/verify-manifest.mjs",
68
+ "prepublishOnly": "npm run verify",
64
69
  "clean": "node -e \"require('fs').rmSync('lib',{recursive:true,force:true})\""
65
70
  },
66
71
  "peerDependencies": {
67
- "@deepseek-ai/dsh-tools": ">=0.1.0-rc.6"
72
+ "@deepseek-ai/dsh-tools": "^0.1.0-rc.6"
68
73
  },
69
74
  "devDependencies": {
70
75
  "@types/node": "^22.0.0",
@@ -0,0 +1,19 @@
1
+ import { readFileSync } from 'node:fs'
2
+ import { resolve } from 'node:path'
3
+ import { fileURLToPath } from 'node:url'
4
+
5
+ const root = resolve(fileURLToPath(new URL('.', import.meta.url)), '..')
6
+ const pkg = JSON.parse(readFileSync(resolve(root, 'package.json'), 'utf8'))
7
+
8
+ const failures = []
9
+ if (!pkg.dsh?.bundle?.patch) failures.push('dsh.bundle.patch is missing — plugin is not installable via dsh plugin add')
10
+ if (!Array.isArray(pkg.keywords) || !pkg.keywords.includes('dsh-plugin')) failures.push('keywords must include "dsh-plugin" for marketplace discovery')
11
+ if (!pkg.repository?.url) failures.push('repository.url is missing')
12
+ if (!pkg.license) failures.push('license is missing')
13
+
14
+ if (failures.length) {
15
+ console.error(`[verify-manifest] ${failures.length} issue(s):`)
16
+ for (const f of failures) console.error(` - ${f}`)
17
+ process.exit(1)
18
+ }
19
+ console.log(`[verify-manifest] OK: ${pkg.name}@${pkg.version} is publish-ready`)