dsh-gsv-tts 2.3.2 → 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 +51 -0
- package/CHANGELOG_EN.md +51 -0
- package/README.md +57 -32
- package/README_EN.md +57 -32
- package/docs/images/architecture.png +0 -0
- package/package.json +6 -3
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
|
package/CHANGELOG_EN.md
ADDED
|
@@ -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,36 +1,37 @@
|
|
|
1
1
|
# dsh-gsv-tts
|
|
2
2
|
|
|
3
|
+
> 为 DSH(DeepSeek Harness)接入 [GSV-TTS-Lite](https://github.com/chinokikiss/GSV-TTS-Lite) 本地 TTS 引擎 —— 音色克隆、流式合成、自动朗读、一键朗读、引擎一键启停,全程本地运行。
|
|
4
|
+
|
|
3
5
|

|
|
4
6
|

|
|
5
7
|

|
|
6
8
|

|
|
9
|
+
[](https://awesome-dsh-plugin.com/p/TaoruiLiu19/dsh-gsv/)
|
|
7
10
|
|
|
8
|
-
|
|
11
|
+
English README: [README_EN.md](README_EN.md) · 变更记录: [CHANGELOG.md](CHANGELOG.md)
|
|
9
12
|
|
|
10
|
-
|
|
13
|
+
---
|
|
11
14
|
|
|
12
|
-
##
|
|
15
|
+
## ✨ 功能亮点
|
|
13
16
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
17
|
+
- 🎙️ **音色克隆**:按参考音频克隆目标音色,`tts_speak` 按名称选用
|
|
18
|
+
- ⚡ **真流式合成**:SSE 逐块合成,首块到达即推送,低首包延迟
|
|
19
|
+
- 🔊 **一键朗读**:每条助手消息旁的 🔊 按钮直接朗读(自动排除思考内容)
|
|
20
|
+
- 🔁 **自动朗读**:开启后自动为助手回复合成语音
|
|
21
|
+
- 🎛️ **声音设置面板**:设置 → 声音设置,可视化配置,**保存即热生效**(无需重启)
|
|
22
|
+
- 🚀 **引擎一键启停**:一键启动/停止本地 GSV-TTS-Lite 引擎,模型加载约 15~90 秒
|
|
23
|
+
- 🛠️ **一键安装引擎**:`tts_setup_engine` 自动检测 Python、安装依赖、克隆仓库并启动服务
|
|
24
|
+
- 🔗 **同源音频短链接**:合成音频落盘为 WAV,经 DSH Web 服务同源提供,不再撑爆模型上下文
|
|
20
25
|
|
|
21
|
-
## 安装
|
|
26
|
+
## 📦 安装
|
|
22
27
|
|
|
23
28
|
两种方式任选其一,然后在设置中启用:
|
|
24
29
|
|
|
25
|
-
### 方式一:从 npm 安装
|
|
26
|
-
|
|
27
30
|
```bash
|
|
31
|
+
# 方式一:从 npm 安装
|
|
28
32
|
dsh plugin --profile web add dsh-gsv-tts
|
|
29
|
-
```
|
|
30
33
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
+
# 方式二:从 GitHub 安装
|
|
34
35
|
dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
35
36
|
```
|
|
36
37
|
|
|
@@ -40,14 +41,31 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
40
41
|
|
|
41
42
|
> 依赖 DSH 的 `webServer` 服务(Web / Desktop profile 自带)提供音频下载;`settings` 服务提供设置面板。无这些服务的环境仅保留工具能力。
|
|
42
43
|
|
|
43
|
-
## 快速开始
|
|
44
|
+
## 🚀 快速开始
|
|
44
45
|
|
|
45
46
|
1. **安装引擎**:让 agent 调用 `tts_setup_engine` 自动安装(或见下方手动安装)
|
|
46
|
-
2. **启动引擎**:设置 → 声音设置 → 打开"启动引擎"开关,等待状态变为"运行中"
|
|
47
|
+
2. **启动引擎**:设置 → 声音设置 → 打开"启动引擎"开关,等待状态变为"运行中"
|
|
47
48
|
3. **添加音色**:设置 → 声音设置 → "音色预设" → 添加音色 → 填写四字段 → 保存
|
|
48
49
|
4. **朗读**:点任意助手消息旁的 🔊,或让 agent 调用 `tts_speak`
|
|
49
50
|
|
|
50
|
-
##
|
|
51
|
+
## 🏗️ 系统架构
|
|
52
|
+
|
|
53
|
+

|
|
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
|
+
## 📸 截图
|
|
51
69
|
|
|
52
70
|

|
|
53
71
|
|
|
@@ -61,7 +79,7 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
61
79
|
|
|
62
80
|
*引擎启动后的"运行中"状态*
|
|
63
81
|
|
|
64
|
-
## 下载安装 GSV-TTS-Lite 引擎
|
|
82
|
+
## 🔧 下载安装 GSV-TTS-Lite 引擎
|
|
65
83
|
|
|
66
84
|
### 方式一:自动安装(推荐)
|
|
67
85
|
|
|
@@ -80,7 +98,7 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
80
98
|
|
|
81
99
|
> 引擎示例音频位于 `<仓库>/examples/`(`laffey.mp3`、`AnAn.ogg`),可直接用作测试音色。
|
|
82
100
|
|
|
83
|
-
## 添加音色
|
|
101
|
+
## 🎙️ 添加音色
|
|
84
102
|
|
|
85
103
|
1. 打开 设置 → 声音设置
|
|
86
104
|
2. "音色预设"下点击"添加音色"
|
|
@@ -98,7 +116,7 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
98
116
|
|
|
99
117
|
> 参考音频路径必须是**引擎服务端能访问的本地路径或可访问 URL**。
|
|
100
118
|
|
|
101
|
-
## 声音设置说明
|
|
119
|
+
## ⚙️ 声音设置说明
|
|
102
120
|
|
|
103
121
|
| 字段 | 说明 | 默认值 |
|
|
104
122
|
|------|------|--------|
|
|
@@ -112,7 +130,7 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
112
130
|
|
|
113
131
|
配置保存在 DSH 的 settings(`~/.dsh/settings.yaml` 的 `dsh-gsv-tts:` 段),修改后插件热生效。
|
|
114
132
|
|
|
115
|
-
## 工具列表
|
|
133
|
+
## 🧰 工具列表
|
|
116
134
|
|
|
117
135
|
| 工具 | 功能 |
|
|
118
136
|
|------|------|
|
|
@@ -121,14 +139,14 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
121
139
|
| `tts_health_check` | 检查引擎/API/Python/仓库状态 |
|
|
122
140
|
| `tts_setup_engine` | 一键安装 GSV-TTS-Lite 引擎 |
|
|
123
141
|
|
|
124
|
-
## 常见问题
|
|
142
|
+
## ❓ 常见问题
|
|
125
143
|
|
|
126
144
|
- **引擎未启动**:设置 → 声音设置 → 打开开关(模型加载约 15~90 秒)
|
|
127
145
|
- **模型缺失**:首次启动会提示,把模型放入 `models` 目录
|
|
128
146
|
- **朗读按钮报"语音引擎未启动"**:先到 声音设置 启动引擎
|
|
129
147
|
- **参考音频不可用**:必须是引擎服务端可访问的本地路径或 URL
|
|
130
148
|
|
|
131
|
-
## 技术栈
|
|
149
|
+
## 🛠️ 技术栈
|
|
132
150
|
|
|
133
151
|
- DSH 插件框架:Cordis + `@deepseek-ai/dsh-tools`
|
|
134
152
|
- 配置 Schema:`@deepseek-ai/schemastery`
|
|
@@ -136,7 +154,7 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
136
154
|
- TTS 引擎:GSV-TTS-Lite 0.4.7
|
|
137
155
|
- 语言:TypeScript(宿主)/ 手写客户端 bundle(浏览器)/ Python(流式 API)
|
|
138
156
|
|
|
139
|
-
## 构建与发布
|
|
157
|
+
## 📦 构建与发布
|
|
140
158
|
|
|
141
159
|
```bash
|
|
142
160
|
pnpm install
|
|
@@ -146,16 +164,23 @@ pnpm publish # 发布到 npm(files: lib, scripts, cordis.patch.yml)
|
|
|
146
164
|
|
|
147
165
|
从 GitHub 安装会自动执行 `prepare` 脚本编译;`lib/client.js` 为手写客户端 bundle,随仓库发布。
|
|
148
166
|
|
|
149
|
-
|
|
167
|
+
更多发布细节见 [docs/PUBLISHING.md](docs/PUBLISHING.md)。
|
|
168
|
+
|
|
169
|
+
## 📜 变更记录
|
|
150
170
|
|
|
151
|
-
|
|
152
|
-
- **2.3.0**:真流式客户端改进与引擎兼容补丁;补充引擎安装与语音下载指南;新增界面截图;README 双语重写,明确 npm / GitHub 双通道安装
|
|
153
|
-
- **2.2.0**:声音设置面板(保存即热生效);引擎一键启停开关;🔊 朗读按钮(排除思考,引擎未启动给出原因);设置内帮助文档;音频同源短链接
|
|
154
|
-
- **2.1.0**:音频改由 DSH Web 服务同源提供(不再用巨型 data URL);WAV 头/时长计算修复;`prompt_text` 留空 ASR 兜底;`execFileSync` 消除命令注入;`py -3` 支持;健康检查路径探测
|
|
171
|
+
完整更新历史见 [CHANGELOG.md](CHANGELOG.md)。
|
|
155
172
|
|
|
156
|
-
## 已知限制
|
|
173
|
+
## ⚠️ 已知限制
|
|
157
174
|
|
|
158
175
|
- 播放为 markdown 链接点击播放;内嵌 `<audio>` 需客户端扩展(规划中)
|
|
159
176
|
- 合成音频存于系统临时目录(`%TEMP%/dsh-gsv-tts`),启动清空、会话内最多 200 个
|
|
160
177
|
- `tts_setup_engine` 通过 `child_process` 执行 pip/git,需环境有对应工具
|
|
161
178
|
- `promptText` 留空依赖引擎 ASR 能力(能力探测),不支持时合成报错
|
|
179
|
+
|
|
180
|
+
## 📄 License
|
|
181
|
+
|
|
182
|
+
本项目以 **MIT 许可证** 开源发布。
|
|
183
|
+
|
|
184
|
+
版权所有 © 2026 TaoruiLiu19。在软件的副本或主要部分中包含上述版权声明和本许可声明的前提下,任何人可免费复制、修改、合并、发布、分发、再授权及/或出售本软件副本。
|
|
185
|
+
|
|
186
|
+
本项目按"**原样**"提供,**不附带任何明示或默示保证**。完整许可条款见 [LICENSE](LICENSE) 文件。
|
package/README_EN.md
CHANGED
|
@@ -1,36 +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, all running locally.
|
|
4
|
+
|
|
3
5
|

|
|
4
6
|

|
|
5
7
|

|
|
6
8
|

|
|
9
|
+
[](https://awesome-dsh-plugin.com/p/TaoruiLiu19/dsh-gsv/)
|
|
7
10
|
|
|
8
|
-
|
|
11
|
+
中文 README: [README.md](README.md) · Changelog: [CHANGELOG_EN.md](CHANGELOG_EN.md)
|
|
9
12
|
|
|
10
|
-
|
|
13
|
+
---
|
|
11
14
|
|
|
12
|
-
## Features
|
|
15
|
+
## ✨ Features
|
|
13
16
|
|
|
14
|
-
- **Voice
|
|
15
|
-
- **
|
|
16
|
-
- **
|
|
17
|
-
- **Auto-read**: automatically synthesize assistant replies when enabled
|
|
18
|
-
- **
|
|
19
|
-
- **
|
|
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
|
|
20
25
|
|
|
21
|
-
## Installation
|
|
26
|
+
## 📦 Installation
|
|
22
27
|
|
|
23
28
|
Choose one of the two methods, then enable it in Settings:
|
|
24
29
|
|
|
25
|
-
### Option 1: Install from npm
|
|
26
|
-
|
|
27
30
|
```bash
|
|
31
|
+
# Option 1: Install from npm
|
|
28
32
|
dsh plugin --profile web add dsh-gsv-tts
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### Option 2: Install from GitHub
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
# Option 2: Install from GitHub
|
|
34
35
|
dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
35
36
|
```
|
|
36
37
|
|
|
@@ -40,14 +41,31 @@ After installing, restart DSH. The tools register automatically and a "Voice Set
|
|
|
40
41
|
|
|
41
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.
|
|
42
43
|
|
|
43
|
-
## Quick Start
|
|
44
|
+
## 🚀 Quick Start
|
|
44
45
|
|
|
45
46
|
1. **Install the engine**: ask the agent to call `tts_setup_engine` (or install manually below)
|
|
46
|
-
2. **Start the engine**: Settings → Voice Settings → toggle "Start engine" on and wait until it shows "Running"
|
|
47
|
+
2. **Start the engine**: Settings → Voice Settings → toggle "Start engine" on and wait until it shows "Running"
|
|
47
48
|
3. **Add a voice**: Settings → Voice Settings → "Voice presets" → Add voice → fill in the four fields → Save
|
|
48
49
|
4. **Read aloud**: click the 🔊 button next to any assistant message, or ask the agent to call `tts_speak`
|
|
49
50
|
|
|
50
|
-
##
|
|
51
|
+
## 🏗️ Architecture
|
|
52
|
+
|
|
53
|
+

|
|
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
|
|
51
69
|
|
|
52
70
|

|
|
53
71
|
|
|
@@ -61,7 +79,7 @@ After installing, restart DSH. The tools register automatically and a "Voice Set
|
|
|
61
79
|
|
|
62
80
|
*The "Running" state after the engine starts*
|
|
63
81
|
|
|
64
|
-
## Installing the GSV-TTS-Lite Engine
|
|
82
|
+
## 🔧 Installing the GSV-TTS-Lite Engine
|
|
65
83
|
|
|
66
84
|
### Option 1: Automatic (recommended)
|
|
67
85
|
|
|
@@ -80,7 +98,7 @@ Ask the agent to call `tts_setup_engine`. It automatically: detects Python → i
|
|
|
80
98
|
|
|
81
99
|
> Example audio lives in `<repo>/examples/` (`laffey.mp3`, `AnAn.ogg`) — usable as test voices.
|
|
82
100
|
|
|
83
|
-
## Adding a Voice
|
|
101
|
+
## 🎙️ Adding a Voice
|
|
84
102
|
|
|
85
103
|
1. Open Settings → Voice Settings
|
|
86
104
|
2. Under "Voice presets", click "Add voice"
|
|
@@ -98,7 +116,7 @@ Ask the agent to call `tts_setup_engine`. It automatically: detects Python → i
|
|
|
98
116
|
|
|
99
117
|
> Reference audio paths must be **local paths accessible from the engine host or reachable URLs**.
|
|
100
118
|
|
|
101
|
-
## Voice Settings Reference
|
|
119
|
+
## ⚙️ Voice Settings Reference
|
|
102
120
|
|
|
103
121
|
| Field | Description | Default |
|
|
104
122
|
|-------|-------------|---------|
|
|
@@ -112,7 +130,7 @@ Ask the agent to call `tts_setup_engine`. It automatically: detects Python → i
|
|
|
112
130
|
|
|
113
131
|
Config is stored in DSH settings (the `dsh-gsv-tts:` section of `~/.dsh/settings.yaml`) and hot-applied on change.
|
|
114
132
|
|
|
115
|
-
## Tools
|
|
133
|
+
## 🧰 Tools
|
|
116
134
|
|
|
117
135
|
| Tool | Purpose |
|
|
118
136
|
|------|---------|
|
|
@@ -121,14 +139,14 @@ Config is stored in DSH settings (the `dsh-gsv-tts:` section of `~/.dsh/settings
|
|
|
121
139
|
| `tts_health_check` | Check engine/API/Python/repo status |
|
|
122
140
|
| `tts_setup_engine` | One-click GSV-TTS-Lite engine installation |
|
|
123
141
|
|
|
124
|
-
## FAQ
|
|
142
|
+
## ❓ FAQ
|
|
125
143
|
|
|
126
144
|
- **Engine not running**: Settings → Voice Settings → toggle on (model loading takes ~15–90 s)
|
|
127
145
|
- **Models missing**: the first start will warn; put the models into the `models` directory
|
|
128
146
|
- **The read button says "engine not started"**: start the engine in Voice Settings first
|
|
129
147
|
- **Reference audio unavailable**: use a local path accessible from the engine host or a reachable URL
|
|
130
148
|
|
|
131
|
-
## Tech Stack
|
|
149
|
+
## 🛠️ Tech Stack
|
|
132
150
|
|
|
133
151
|
- DSH plugin framework: Cordis + `@deepseek-ai/dsh-tools`
|
|
134
152
|
- Config schema: `@deepseek-ai/schemastery`
|
|
@@ -136,7 +154,7 @@ Config is stored in DSH settings (the `dsh-gsv-tts:` section of `~/.dsh/settings
|
|
|
136
154
|
- TTS engine: GSV-TTS-Lite 0.4.7
|
|
137
155
|
- Languages: TypeScript (host) / hand-written client bundle (browser) / Python (streaming API)
|
|
138
156
|
|
|
139
|
-
## Build & Publish
|
|
157
|
+
## 📦 Build & Publish
|
|
140
158
|
|
|
141
159
|
```bash
|
|
142
160
|
pnpm install
|
|
@@ -146,16 +164,23 @@ pnpm publish # publish to npm (files: lib, scripts, cordis.patch.yml)
|
|
|
146
164
|
|
|
147
165
|
Installing from GitHub runs the `prepare` script automatically; `lib/client.js` is a hand-written client bundle shipped with the repo.
|
|
148
166
|
|
|
149
|
-
|
|
167
|
+
See [docs/PUBLISHING.md](docs/PUBLISHING.md) for publishing details.
|
|
168
|
+
|
|
169
|
+
## 📜 Changelog
|
|
150
170
|
|
|
151
|
-
|
|
152
|
-
- **2.3.0**: True-streaming client improvements and engine compatibility patch; added engine-install and voice-download guide; added UI screenshots; bilingual README rewrite with clear npm/GitHub install paths
|
|
153
|
-
- **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
|
|
154
|
-
- **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).
|
|
155
172
|
|
|
156
|
-
## Known Limitations
|
|
173
|
+
## ⚠️ Known Limitations
|
|
157
174
|
|
|
158
175
|
- Playback is a clickable markdown link; inline `<audio>` playback needs a client extension (planned)
|
|
159
176
|
- Generated audio lives in the system temp dir (`%TEMP%/dsh-gsv-tts`), purged on startup, capped at 200 files per session
|
|
160
177
|
- `tts_setup_engine` shells out to pip/git; those tools must be available
|
|
161
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.
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-gsv-tts",
|
|
3
|
-
"version": "2.3.
|
|
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": {
|