dsh-gsv-tts 4.1.0 → 5.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 +15 -0
- package/CHANGELOG_EN.md +15 -0
- package/README.md +18 -9
- package/README_EN.md +17 -8
- package/docs/PUBLISHING.md +8 -0
- package/docs/voices.json +49 -35
- package/lib/audio-store.d.ts +6 -3
- package/lib/audio-store.d.ts.map +1 -1
- package/lib/audio-store.js +23 -8
- package/lib/audio-store.js.map +1 -1
- package/lib/client.js +48 -23
- package/lib/config.d.ts +29 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/config.js +55 -0
- package/lib/config.js.map +1 -0
- package/lib/index.d.ts +1 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +107 -86
- package/lib/index.js.map +1 -1
- package/lib/migration.d.ts +6 -6
- package/lib/migration.d.ts.map +1 -1
- package/lib/migration.js +8 -10
- package/lib/migration.js.map +1 -1
- package/lib/setup.d.ts +7 -1
- package/lib/setup.d.ts.map +1 -1
- package/lib/setup.js +14 -3
- package/lib/setup.js.map +1 -1
- package/lib/tts.service.d.ts +6 -2
- package/lib/tts.service.d.ts.map +1 -1
- package/lib/tts.service.js +10 -6
- package/lib/tts.service.js.map +1 -1
- package/lib/types.d.ts +1 -1
- package/lib/types.d.ts.map +1 -1
- package/lib/voice-manager.d.ts +6 -2
- package/lib/voice-manager.d.ts.map +1 -1
- package/lib/voice-manager.js +24 -14
- package/lib/voice-manager.js.map +1 -1
- package/lib/voice-registry.d.ts +33 -7
- package/lib/voice-registry.d.ts.map +1 -1
- package/lib/voice-registry.js +107 -35
- package/lib/voice-registry.js.map +1 -1
- package/package.json +19 -14
- package/scripts/verify-manifest.mjs +21 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
本文件记录 dsh-gsv-tts 的所有版本更新。格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
|
|
4
4
|
|
|
5
|
+
## [5.0.0] - 2026-10-26
|
|
6
|
+
|
|
7
|
+
### 适配 DSH 0.2.1-rc.2(破坏性变更)
|
|
8
|
+
- **运行环境**:`engines.dsh: ^0.2.1-rc.2`;peer 依赖升级到 `@deepseek-ai/dsh-tools@^0.2.1-rc.2`、`@deepseek-ai/schemastery@^3.18.5`。DSH 0.1.x 请继续使用 4.x。
|
|
9
|
+
- **设置服务迁移**:DSH 0.2 移除了 `ctx.settings.register()` / `settingsScope`,改为「Config Schema 推导表单」:
|
|
10
|
+
- `Config` 全字段标记 `Schema.volatile()`,设置面板可即时编辑,保存后宿主**就地更新配置引用、不重载插件**;
|
|
11
|
+
- 运行时统一通过 `snapshotConfig()` 解引用 volatile 配置(兼容普通对象),每次操作读取最新值;
|
|
12
|
+
- 写回(provider 迁移、音色市场安装/卸载)改走 `ctx.settings.update(entryId, patch)`。
|
|
13
|
+
- **客户端服务迁移**:`settingsScope` → `configForms`(`ctx.configForms.get(ns)`);设置卡片兼容 `loading` / `unavailable` 状态,不再因设置服务缺失而空白。
|
|
14
|
+
- **会话读取**:`/speak` 改用 `session.snapshotEvents()`(DSH 0.2 不再保证 `session.events` / `session.log`)。
|
|
15
|
+
- **音频地址**:`AudioStore` 改为按需读取 `ctx.webServer.getOrigin()`,避免监听绑定前 `port` 未定义导致的错误地址;无同源地址时退回同源相对路径。
|
|
16
|
+
- **provider 迁移**:无 `provider` 字段时按「有音色 → gsv,无音色 → edge」判定,并在 Loader 就绪后写回一次(幂等)。
|
|
17
|
+
- **插件清单**:`dsh.client.inject` 清理为 DSH 0.2 实际存在的包(client-modules / locale / ui-slots / ui-settings);移除已不存在的 `dsh-client-runtime`。
|
|
18
|
+
- 新增单测:volatile 配置解引用、就地热更新语义、迁移判定;构建/测试与真实 DSH 0.2.1 profile 启动、设置读写、provider 热切换均通过验证。
|
|
19
|
+
|
|
5
20
|
## [4.1.0] - 2026-08-31
|
|
6
21
|
|
|
7
22
|
### Edge 音色体验优化
|
package/CHANGELOG_EN.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
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
4
|
|
|
5
|
+
## [5.0.0] - 2026-10-26
|
|
6
|
+
|
|
7
|
+
### Adapted to DSH 0.2.1-rc.2 (breaking)
|
|
8
|
+
- **Runtime**: `engines.dsh: ^0.2.1-rc.2`; peers moved to `@deepseek-ai/dsh-tools@^0.2.1-rc.2` and `@deepseek-ai/schemastery@^3.18.5`. DSH 0.1.x users should stay on 4.x.
|
|
9
|
+
- **Settings service migration**: DSH 0.2 removed `ctx.settings.register()` / `settingsScope` in favor of forms derived from the plugin Config schema:
|
|
10
|
+
- every `Config` field is now `Schema.volatile()`; the settings panel edits them live and the host updates config references **in place without reloading the plugin**;
|
|
11
|
+
- the host reads all values through `snapshotConfig()`, which unwraps volatile references (and still accepts plain objects), so each operation sees the latest values;
|
|
12
|
+
- writes (provider migration, voice-market install/uninstall) now use `ctx.settings.update(entryId, patch)`.
|
|
13
|
+
- **Client service migration**: `settingsScope` → `configForms` (`ctx.configForms.get(ns)`); the settings card now handles `loading` / `unavailable` states instead of rendering blank when the host has no settings service.
|
|
14
|
+
- **Session reads**: `/speak` now uses `session.snapshotEvents()` (DSH 0.2 no longer guarantees `session.events` / `session.log`).
|
|
15
|
+
- **Audio URLs**: `AudioStore` reads `ctx.webServer.getOrigin()` lazily instead of caching `host:port` before the listener binds, and falls back to same-origin relative paths.
|
|
16
|
+
- **provider migration**: with no `provider` field, the plugin resolves "voices present → gsv, none → edge" and persists it once after the loader settles (idempotent).
|
|
17
|
+
- **Plugin manifest**: `dsh.client.inject` now lists packages that exist in DSH 0.2 (client-modules / locale / ui-slots / ui-settings); the removed `dsh-client-runtime` is gone.
|
|
18
|
+
- Added unit coverage for volatile config unwrapping, in-place live updates, and the migration decision; verified with a real DSH 0.2.1 profile boot, settings read/write, and live provider switching.
|
|
19
|
+
|
|
5
20
|
## [4.1.0] - 2026-08-31
|
|
6
21
|
|
|
7
22
|
### Edge voice experience polish
|
package/README.md
CHANGED
|
@@ -34,6 +34,8 @@ English README: [README_EN.md](README_EN.md) · 变更记录: [CHANGELOG.md](CHA
|
|
|
34
34
|
| "我要**克隆自己的声音 / 完全离线**" | 🖥️ **本地专业(GSV)** | 见下方「二、本地专业模式」 |
|
|
35
35
|
|
|
36
36
|
> **默认模式**:全新安装默认为 **Edge 快速体验**(联网即用);**从旧版本升级的老用户仍保持 GSV 本地模式、声音不变**,可随时在设置面板切换。
|
|
37
|
+
>
|
|
38
|
+
> **DSH 版本要求**:5.0.0 起适配 **DSH 0.2.1-rc.2+**(`engines.dsh`)。DSH 0.2 把设置改成了 volatile 配置 + 客户端 `configForms` 服务,5.0.0 已同步迁移;DSH 0.1.x 请使用 4.x 版本插件。
|
|
37
39
|
|
|
38
40
|
### 一、快速体验模式(Edge,新装默认)
|
|
39
41
|
|
|
@@ -71,7 +73,9 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
71
73
|
|
|
72
74
|
安装后重启 DSH,工具自动注册到 agent,设置中出现"声音设置"项。
|
|
73
75
|
|
|
74
|
-
> 依赖 DSH 的 `webServer` 服务(Web / Desktop profile 自带)提供音频下载;`settings`
|
|
76
|
+
> 依赖 DSH 的 `webServer` 服务(Web / Desktop profile 自带)提供音频下载;`settings` 服务提供设置面板。环境缺少这些服务时仅保留工具能力。
|
|
77
|
+
|
|
78
|
+
> **从 4.x 升级**:直接安装新版即可,配置自动沿用;首次启动会把 `provider` 落定写回一次(有音色的老配置保持 `gsv`,全新安装为 `edge`),之后设置保存通过 DSH 0.2 的 volatile 配置就地热更新,不再重载插件。
|
|
75
79
|
|
|
76
80
|
## 🔄 模式切换与迁移
|
|
77
81
|
|
|
@@ -79,8 +83,9 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
79
83
|
|---|---|
|
|
80
84
|
| 如何切换 | 设置 → 声音设置 → **TTS 模式**(快速体验 / 本地专业),切换即时生效 |
|
|
81
85
|
| 配置项 | `provider: 'edge' \| 'gsv'`(初始化分派,建议经设置面板切换,勿手动改) |
|
|
82
|
-
| 老用户升级 | 无 `provider`
|
|
83
|
-
| 全新安装 | 默认 `edge` 云端简单模式,联网即用 |
|
|
86
|
+
| 老用户升级 | 无 `provider` 字段的旧配置:**有音色预设 → 保持 `gsv` 本地模式,声音不变** |
|
|
87
|
+
| 全新安装 | 无音色预设 → 默认 `edge` 云端简单模式,联网即用 |
|
|
88
|
+
| 写入时机 | 首次启动判定后写回一次(`settings.update`),之后不再改写 |
|
|
84
89
|
| `schemaVersion` | 配置结构版本,迁移守卫的落点 |
|
|
85
90
|
|
|
86
91
|
> Edge 模式需联网;若云端不可用,面板会提示"云端通道拥挤 / 暂不可用",本地 GSV 模式始终可用作降级。
|
|
@@ -160,6 +165,8 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
160
165
|
|
|
161
166
|
从音色市场一键下载并注入音色,无需手动填写参考音频路径。
|
|
162
167
|
|
|
168
|
+
> 🌐 **在线试听网站**:[https://taoruiliu19.github.io/gsv-market/](https://taoruiliu19.github.io/gsv-market/) —— 浏览、试听、下载市场中的全部音色,无需安装插件。
|
|
169
|
+
|
|
163
170
|
1. 打开 设置 → 声音设置 → **音色市场**
|
|
164
171
|
2. 浏览音色卡片(来源、作者、许可),点 **试听** 预听
|
|
165
172
|
3. 点 **安装**:
|
|
@@ -168,7 +175,7 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
168
175
|
4. 安装后音色自动加入"音色预设",即可在 🔊 / `tts_speak` 中选用
|
|
169
176
|
5. 市场安装的音色在面板中**只读**(仅可卸载),防止误改破坏账本;点 **卸载** 可(提示)同时删除本地音频
|
|
170
177
|
|
|
171
|
-
>
|
|
178
|
+
> **信任规则(A+ 混合模式)**:包内 `docs/voices.json` 收录的音色始终视为 trusted(随包发布已审计),即便经远端清单展示也免确认;远端清单中新增的音色(包内未收录)一律二次确认。合并时以 id 为键,包内优先,远端只补充新 id。自定义音色请在"音色预设"手工添加。
|
|
172
179
|
|
|
173
180
|
## 🎙️ 添加音色(本地 GSV)
|
|
174
181
|
|
|
@@ -200,13 +207,13 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
200
207
|
| `installDir` | 引擎安装目录 | `./GSV-TTS-Lite` |
|
|
201
208
|
| `autoPlay` | 自动朗读助手回复 | `false` |
|
|
202
209
|
| `interruptOnNew` | 自动朗读时新回复是否打断当前朗读(关闭则朗读中跳过,避免叠音) | `true` |
|
|
203
|
-
| `voiceRegistryUrl` |
|
|
210
|
+
| `voiceRegistryUrl` | 音色市场远端清单地址(默认指向在线试听站点;留空仅用包内离线清单) | 站点 URL |
|
|
204
211
|
| `provider` | `gsv` \| `edge`(初始化分派,勿手动改;设置面板切换) | 见"TTS 模式" |
|
|
205
212
|
| `schemaVersion` | 配置结构版本(迁移守卫落点) | `1` |
|
|
206
213
|
| `quotaDaily` | 云端简单模式每日配额(`null`=不限量,仅引导用) | `null` |
|
|
207
214
|
| `voices` | 音色预设列表 | 空 |
|
|
208
215
|
|
|
209
|
-
|
|
216
|
+
配置保存在当前 profile 的配置层(`~/.dsh/profiles/<profile>/cordis.patch.yml` 的 `dsh-gsv-tts:` 条目)。DSH 0.2 起这些字段是 **volatile 配置**:设置面板保存后宿主就地更新配置引用,插件无需重载即可读到新值。
|
|
210
217
|
|
|
211
218
|
## 🧰 工具列表
|
|
212
219
|
|
|
@@ -225,12 +232,14 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
225
232
|
- **朗读按钮报"语音引擎未启动"**:如果你用的是本地 GSV 模式,先到声音设置启动引擎;不想装引擎就切回 Edge 云端模式。
|
|
226
233
|
- **云端音色有的读不了?**:确认网络畅通;云端通道受限时可切本地 GSV。
|
|
227
234
|
- **参考音频不可用**:必须是引擎服务端可访问的本地路径或 URL。
|
|
235
|
+
- **DSH 0.1.x 里插件被禁用 / 启动报不兼容**:5.0.0 只支持 DSH 0.2.1-rc.2+,请升级 DSH 或改装 4.x 插件。
|
|
236
|
+
- **声音设置显示"设置不可用"**:当前宿主没有提供设置服务(精简部署);工具能力仍然可用。
|
|
228
237
|
|
|
229
238
|
## 🛠️ 技术栈
|
|
230
239
|
|
|
231
|
-
- DSH 插件框架:Cordis + `@deepseek-ai/dsh-tools`
|
|
232
|
-
- 配置 Schema:`@deepseek-ai/schemastery
|
|
233
|
-
-
|
|
240
|
+
- DSH 插件框架:Cordis + `@deepseek-ai/dsh-tools` 0.2.1
|
|
241
|
+
- 配置 Schema:`@deepseek-ai/schemastery`(volatile 字段 + 就地热更新)
|
|
242
|
+
- 设置面板:宿主 `settings` 服务(`describe`/`update`)+ 客户端 `configForms` 服务 + `settings.section` 插槽
|
|
234
243
|
- 云端 Provider:`edge-tts-universal`(微软网络音色,MP3 流)
|
|
235
244
|
- 本地引擎:GSV-TTS-Lite 0.4.7
|
|
236
245
|
- 语言:TypeScript(宿主)/ 手写客户端 bundle(浏览器)/ Python(本地流式 API)
|
package/README_EN.md
CHANGED
|
@@ -34,6 +34,8 @@
|
|
|
34
34
|
| "I want to **clone my own voice / be fully offline**" | 🖥️ **Local Pro Mode (GSV)** | See "Local Pro Mode (GSV)" below |
|
|
35
35
|
|
|
36
36
|
> **Default mode**: fresh installs default to **Edge Quick Mode** (works online); **existing users upgrading keep GSV local mode with voices unchanged**, and can switch anytime in the settings panel.
|
|
37
|
+
>
|
|
38
|
+
> **DSH version requirement**: 5.0.0 targets **DSH 0.2.1-rc.2+** (`engines.dsh`). DSH 0.2 replaced its settings API with volatile config plus the client-side `configForms` service; 5.0.0 follows that API. DSH 0.1.x users should stay on the 4.x plugin line.
|
|
37
39
|
|
|
38
40
|
### 1. Quick Mode (Edge, default for new installs)
|
|
39
41
|
|
|
@@ -73,14 +75,17 @@ After installing, restart DSH. The tools register automatically and a "Voice Set
|
|
|
73
75
|
|
|
74
76
|
> 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.
|
|
75
77
|
|
|
78
|
+
> **Upgrading from 4.x**: install the new version and keep your configuration. On the first boot the plugin resolves and persists `provider` once (configs with voices stay `gsv`; fresh installs become `edge`). After that, saving settings goes through DSH 0.2 volatile config and updates in place without reloading the plugin.
|
|
79
|
+
|
|
76
80
|
## 🔄 Mode Switching & Migration
|
|
77
81
|
|
|
78
82
|
| Item | Description |
|
|
79
83
|
|---|---|
|
|
80
84
|
| How to switch | Settings → Voice Settings → **TTS Mode** (Quick / Local Pro), applied instantly |
|
|
81
85
|
| Config field | `provider: 'edge' \| 'gsv'` (assigned at init; switch from the settings panel rather than editing manually) |
|
|
82
|
-
| Existing users upgrading | Old config with no `provider` field → stays `gsv` local mode,
|
|
83
|
-
| Fresh installs |
|
|
86
|
+
| Existing users upgrading | Old config with no `provider` field: **voices present → stays `gsv` local mode, voices unchanged** |
|
|
87
|
+
| Fresh installs | No voices → defaults to `edge` cloud Quick mode, ready online |
|
|
88
|
+
| When it is written | Resolved once on first boot and persisted via `settings.update`; never rewritten afterwards |
|
|
84
89
|
| `schemaVersion` | Config schema version — the migration guard marker |
|
|
85
90
|
|
|
86
91
|
> Edge mode needs network; if the cloud is unavailable, the panel shows "cloud channel busy / temporarily unavailable", and local GSV mode is always available as a fallback.
|
|
@@ -160,6 +165,8 @@ Ask the agent to call `tts_setup_engine`. It automatically: detects Python → i
|
|
|
160
165
|
|
|
161
166
|
Download and inject voices from the Voice Market in one click — no need to fill in reference audio paths manually.
|
|
162
167
|
|
|
168
|
+
> 🌐 **Online audition site**: [https://taoruiliu19.github.io/gsv-market/](https://taoruiliu19.github.io/gsv-market/) — browse, preview, and download every voice in the market without installing the plugin.
|
|
169
|
+
|
|
163
170
|
1. Open Settings → Voice Settings → **Voice Market**
|
|
164
171
|
2. Browse the voice cards (source, author, license); click **Preview** to listen
|
|
165
172
|
3. Click **Install**:
|
|
@@ -168,7 +175,7 @@ Download and inject voices from the Voice Market in one click — no need to fil
|
|
|
168
175
|
4. Installed voices are added to "Voice presets" and can be used from 🔊 / `tts_speak`
|
|
169
176
|
5. Market-installed voices are **read-only** in the panel (uninstall only) to keep the id ledger intact; **Uninstall** can (with a prompt) also delete the local audio files
|
|
170
177
|
|
|
171
|
-
> **Trust rule**:
|
|
178
|
+
> **Trust rule (A+ hybrid)**: voices listed in the bundled `docs/voices.json` are always treated as trusted (audited at release), even when displayed via the remote manifest — no confirmation needed. New voices only in the remote manifest (not bundled) always require a second confirmation. Merge is keyed by id: bundled voices take priority, remote only supplements new ids. For custom voices, add them manually under "Voice presets".
|
|
172
179
|
|
|
173
180
|
## 🎙️ Adding a Voice (local GSV)
|
|
174
181
|
|
|
@@ -200,13 +207,13 @@ Download and inject voices from the Voice Market in one click — no need to fil
|
|
|
200
207
|
| `installDir` | Engine install directory | `./GSV-TTS-Lite` |
|
|
201
208
|
| `autoPlay` | Auto-read assistant replies | `false` |
|
|
202
209
|
| `interruptOnNew` | Whether new replies interrupt the current read in auto-read mode (off = skip new replies while reading to avoid overlap) | `true` |
|
|
203
|
-
| `voiceRegistryUrl` | Remote voice-market manifest URL (empty = bundled offline
|
|
210
|
+
| `voiceRegistryUrl` | Remote voice-market manifest URL (defaults to the online audition site; empty = bundled offline only) | site URL |
|
|
204
211
|
| `provider` | `gsv` \| `edge` (assigned at init; switch in the settings panel) | see "TTS Mode" |
|
|
205
212
|
| `schemaVersion` | Config schema version (migration guard marker) | `1` |
|
|
206
213
|
| `quotaDaily` | Daily quota for cloud simple mode (`null` = unlimited; guidance only) | `null` |
|
|
207
214
|
| `voices` | Voice preset list | empty |
|
|
208
215
|
|
|
209
|
-
Config is stored in
|
|
216
|
+
Config is stored in the active profile's config layer (the `dsh-gsv-tts:` entry of `~/.dsh/profiles/<profile>/cordis.patch.yml`). Since DSH 0.2 these fields are **volatile config**: a settings save updates the config references in place, so the plugin reads the new values without a reload.
|
|
210
217
|
|
|
211
218
|
## 🧰 Tools
|
|
212
219
|
|
|
@@ -225,12 +232,14 @@ Config is stored in DSH settings (the `dsh-gsv-tts:` section of `~/.dsh/settings
|
|
|
225
232
|
- **The read button says "TTS engine not started"**: if you're on local GSV, start the engine in Voice Settings first; if you don't want an engine, switch back to Edge Quick mode
|
|
226
233
|
- **Some cloud voices won't read?**: make sure the network is up; when the cloud channel is limited, switch to local GSV
|
|
227
234
|
- **Reference audio unavailable**: use a local path accessible from the engine host or a reachable URL
|
|
235
|
+
- **Plugin disabled as incompatible on DSH 0.1.x**: 5.0.0 requires DSH 0.2.1-rc.2+; upgrade DSH or install the 4.x plugin
|
|
236
|
+
- **Voice Settings says "settings unavailable"**: the host provides no settings service (minimal deployment); tool capabilities still work
|
|
228
237
|
|
|
229
238
|
## 🛠️ Tech Stack
|
|
230
239
|
|
|
231
|
-
- DSH plugin framework: Cordis + `@deepseek-ai/dsh-tools`
|
|
232
|
-
- Config schema: `@deepseek-ai/schemastery`
|
|
233
|
-
- Settings panel:
|
|
240
|
+
- DSH plugin framework: Cordis + `@deepseek-ai/dsh-tools` 0.2.1
|
|
241
|
+
- Config schema: `@deepseek-ai/schemastery` (volatile fields with in-place live updates)
|
|
242
|
+
- Settings panel: host `settings` service (`describe`/`update`) + client `configForms` service + `settings.section` slots
|
|
234
243
|
- Cloud provider: `edge-tts-universal` (Microsoft web voices, MP3 stream)
|
|
235
244
|
- Local engine: GSV-TTS-Lite 0.4.7
|
|
236
245
|
- Languages: TypeScript (host) / hand-written client bundle (browser) / Python (streaming API)
|
package/docs/PUBLISHING.md
CHANGED
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
- `keywords` 包含 `"dsh-plugin"`——基于 npm 的市场(dshbase 等)通过 `npm search dsh-plugin` 发现插件。
|
|
11
11
|
- `repository` / `license` / `homepage` / `bugs` 完整——部分爬虫用 `repository` 关联 npm 包与源码仓库。
|
|
12
12
|
|
|
13
|
+
## DSH 兼容性元数据
|
|
14
|
+
|
|
15
|
+
DSH 0.2 起,宿主在加载/安装插件前会读取插件清单里的 `engines.dsh`(存在时优先于 `peerDependencies` 里的 `@deepseek-ai/dsh*` 范围)判断兼容性;不满足时会禁用插件并提示升级。
|
|
16
|
+
|
|
17
|
+
- `engines.dsh` 必须覆盖当前 DSH 运行时版本(含 prerelease),例如 `^0.2.1-rc.2`。
|
|
18
|
+
- `peerDependencies` 里的 `@deepseek-ai/dsh-tools` 等宿主包范围要同步到同一大版本,避免安装出错版 SDK。
|
|
19
|
+
- 升级宿主大版本时(例如 0.2 → 0.3),先更新这两个字段并重新验证启动,再发布新大版本插件。
|
|
20
|
+
|
|
13
21
|
## 版本发布步骤
|
|
14
22
|
|
|
15
23
|
```sh
|
package/docs/voices.json
CHANGED
|
@@ -1,35 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema": 1,
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"trusted": true,
|
|
5
|
-
"voices": [
|
|
6
|
-
{
|
|
7
|
-
"id": "cn-changhenge-female",
|
|
8
|
-
"name": "中文女声·长恨歌",
|
|
9
|
-
"author": "用户提供 (女声无BGM朗读《长恨歌》)",
|
|
10
|
-
"license": "用户提供素材 — 分发前需确认授权",
|
|
11
|
-
"speaker": "https://raw.githubusercontent.com/TaoruiLiu19/dsh-gsv/master/docs/voices/cn-changhenge-female.mp3",
|
|
12
|
-
"prompt": "https://raw.githubusercontent.com/TaoruiLiu19/dsh-gsv/master/docs/voices/cn-changhenge-female.mp3",
|
|
13
|
-
"promptText": "汉皇重色思倾国,御宇多年求不得。杨家有女初长成,养在深闺人未识。",
|
|
14
|
-
"sizeBytes": 644223,
|
|
15
|
-
"sha256": {
|
|
16
|
-
"speaker": "1586061f343434df9ffd7aa48d99f47c9ceac53cca8d3e2b805bce7d23df063d",
|
|
17
|
-
"prompt": "1586061f343434df9ffd7aa48d99f47c9ceac53cca8d3e2b805bce7d23df063d"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"id": "en-hebang",
|
|
22
|
-
"name": "英语听力男声 (HeBang)",
|
|
23
|
-
"author": "用户提供 (高考英语听力试音)",
|
|
24
|
-
"license": "高考英语听力试音音频 — 分发前需确认授权",
|
|
25
|
-
"speaker": "https://raw.githubusercontent.com/TaoruiLiu19/dsh-gsv/master/docs/voices/en-hebang.mp3",
|
|
26
|
-
"prompt": "https://raw.githubusercontent.com/TaoruiLiu19/dsh-gsv/master/docs/voices/en-hebang.mp3",
|
|
27
|
-
"promptText": "Yes. Every day except Thursday we have a language evening. People can come and practice their languages—you know, over a drink or something. We have different languages on different evenings. Monday—Spanish; Tuesday—Italian; Wednesday—German; and Friday—French.",
|
|
28
|
-
"sizeBytes": 740156,
|
|
29
|
-
"sha256": {
|
|
30
|
-
"speaker": "cd962372d586f48a04c4169f2724d114fe07d962fea0819a0e3a0badd678a5c6",
|
|
31
|
-
"prompt": "cd962372d586f48a04c4169f2724d114fe07d962fea0819a0e3a0badd678a5c6"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"trusted": true,
|
|
5
|
+
"voices": [
|
|
6
|
+
{
|
|
7
|
+
"id": "cn-changhenge-female",
|
|
8
|
+
"name": "中文女声·长恨歌",
|
|
9
|
+
"author": "用户提供 (女声无BGM朗读《长恨歌》)",
|
|
10
|
+
"license": "用户提供素材 — 分发前需确认授权",
|
|
11
|
+
"speaker": "https://raw.githubusercontent.com/TaoruiLiu19/dsh-gsv/master/docs/voices/cn-changhenge-female.mp3",
|
|
12
|
+
"prompt": "https://raw.githubusercontent.com/TaoruiLiu19/dsh-gsv/master/docs/voices/cn-changhenge-female.mp3",
|
|
13
|
+
"promptText": "汉皇重色思倾国,御宇多年求不得。杨家有女初长成,养在深闺人未识。",
|
|
14
|
+
"sizeBytes": 644223,
|
|
15
|
+
"sha256": {
|
|
16
|
+
"speaker": "1586061f343434df9ffd7aa48d99f47c9ceac53cca8d3e2b805bce7d23df063d",
|
|
17
|
+
"prompt": "1586061f343434df9ffd7aa48d99f47c9ceac53cca8d3e2b805bce7d23df063d"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "en-hebang",
|
|
22
|
+
"name": "英语听力男声 (HeBang)",
|
|
23
|
+
"author": "用户提供 (高考英语听力试音)",
|
|
24
|
+
"license": "高考英语听力试音音频 — 分发前需确认授权",
|
|
25
|
+
"speaker": "https://raw.githubusercontent.com/TaoruiLiu19/dsh-gsv/master/docs/voices/en-hebang.mp3",
|
|
26
|
+
"prompt": "https://raw.githubusercontent.com/TaoruiLiu19/dsh-gsv/master/docs/voices/en-hebang.mp3",
|
|
27
|
+
"promptText": "Yes. Every day except Thursday we have a language evening. People can come and practice their languages—you know, over a drink or something. We have different languages on different evenings. Monday—Spanish; Tuesday—Italian; Wednesday—German; and Friday—French.",
|
|
28
|
+
"sizeBytes": 740156,
|
|
29
|
+
"sha256": {
|
|
30
|
+
"speaker": "cd962372d586f48a04c4169f2724d114fe07d962fea0819a0e3a0badd678a5c6",
|
|
31
|
+
"prompt": "cd962372d586f48a04c4169f2724d114fe07d962fea0819a0e3a0badd678a5c6"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "cn-yujie",
|
|
36
|
+
"name": "中文女声·御姐音",
|
|
37
|
+
"author": "用户提供 (御姐音叫起床)",
|
|
38
|
+
"license": "用户提供素材 — 分发前需确认授权",
|
|
39
|
+
"speaker": "https://raw.githubusercontent.com/TaoruiLiu19/gsv-market/main/voices/cn-yujie.mp3",
|
|
40
|
+
"prompt": "https://raw.githubusercontent.com/TaoruiLiu19/gsv-market/main/voices/cn-yujie.mp3",
|
|
41
|
+
"promptText": "早上好呀,宝宝。起床喽,乖乖起床喽。别赖床了。等会要迟到了。小懒猪,起来了。再不起来就打你屁屁喽。",
|
|
42
|
+
"sizeBytes": 396898,
|
|
43
|
+
"sha256": {
|
|
44
|
+
"speaker": "daccd476763a6485be880ac6fb9119e77b4320a71db3dcee1f218a85cae27c24",
|
|
45
|
+
"prompt": "daccd476763a6485be880ac6fb9119e77b4320a71db3dcee1f218a85cae27c24"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
package/lib/audio-store.d.ts
CHANGED
|
@@ -6,12 +6,15 @@ export interface AudioChunk {
|
|
|
6
6
|
sampleRate: number;
|
|
7
7
|
}
|
|
8
8
|
export declare class AudioStore {
|
|
9
|
-
private
|
|
9
|
+
private originProvider?;
|
|
10
10
|
private dir;
|
|
11
11
|
/**
|
|
12
|
-
* @param
|
|
12
|
+
* @param originProvider 返回当前 Web 服务同源地址(`http://host:port`);
|
|
13
|
+
* DSH 0.2+ 的 `webServer.getOrigin()` 在监听前会抛错,因此按需读取而不是构造时缓存。
|
|
14
|
+
* 读不到时退回同源相对路径(浏览器可直接播放)。
|
|
13
15
|
*/
|
|
14
|
-
constructor(
|
|
16
|
+
constructor(originProvider?: string | (() => string | undefined) | undefined);
|
|
17
|
+
private origin;
|
|
15
18
|
get enabled(): boolean;
|
|
16
19
|
/** 将音频块写成 WAV 文件并返回可播放 URL。 */
|
|
17
20
|
save(name: string, chunks: AudioChunk[]): {
|
package/lib/audio-store.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio-store.d.ts","sourceRoot":"","sources":["../src/audio-store.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAmB5D,MAAM,WAAW,UAAU;IACzB,2DAA2D;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,cAAc;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"audio-store.d.ts","sourceRoot":"","sources":["../src/audio-store.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAmB5D,MAAM,WAAW,UAAU;IACzB,2DAA2D;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,cAAc;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,UAAU;IAQT,OAAO,CAAC,cAAc,CAAC;IAPnC,OAAO,CAAC,GAAG,CAAS;IAEpB;;;;OAIG;gBACiB,cAAc,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,YAAA;IAMxE,OAAO,CAAC,MAAM;IAWd,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,+BAA+B;IAC/B,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;IAOvE,yDAAyD;IACzD,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;IAYlE,yCAAyC;IACnC,KAAK,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAqCrE,mBAAmB;IACnB,OAAO,CAAC,QAAQ;IAUhB,yBAAyB;IACzB,OAAO,CAAC,UAAU;IAalB,OAAO,CAAC,SAAS;CAkBlB;AAED;2EAC2E;AAC3E,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAqBhE"}
|
package/lib/audio-store.js
CHANGED
|
@@ -16,19 +16,32 @@ function mimeFor(name) {
|
|
|
16
16
|
return name.toLowerCase().endsWith('.mp3') ? 'audio/mpeg' : 'audio/wav';
|
|
17
17
|
}
|
|
18
18
|
export class AudioStore {
|
|
19
|
-
|
|
19
|
+
originProvider;
|
|
20
20
|
dir;
|
|
21
21
|
/**
|
|
22
|
-
* @param
|
|
22
|
+
* @param originProvider 返回当前 Web 服务同源地址(`http://host:port`);
|
|
23
|
+
* DSH 0.2+ 的 `webServer.getOrigin()` 在监听前会抛错,因此按需读取而不是构造时缓存。
|
|
24
|
+
* 读不到时退回同源相对路径(浏览器可直接播放)。
|
|
23
25
|
*/
|
|
24
|
-
constructor(
|
|
25
|
-
this.
|
|
26
|
+
constructor(originProvider) {
|
|
27
|
+
this.originProvider = originProvider;
|
|
26
28
|
this.dir = join(tmpdir(), 'dsh-gsv-tts');
|
|
27
29
|
mkdirSync(this.dir, { recursive: true });
|
|
28
30
|
this.purgeAll();
|
|
29
31
|
}
|
|
32
|
+
origin() {
|
|
33
|
+
if (typeof this.originProvider === 'function') {
|
|
34
|
+
try {
|
|
35
|
+
return this.originProvider();
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return this.originProvider;
|
|
42
|
+
}
|
|
30
43
|
get enabled() {
|
|
31
|
-
return
|
|
44
|
+
return this.origin() !== undefined;
|
|
32
45
|
}
|
|
33
46
|
/** 将音频块写成 WAV 文件并返回可播放 URL。 */
|
|
34
47
|
save(name, chunks) {
|
|
@@ -42,9 +55,11 @@ export class AudioStore {
|
|
|
42
55
|
const file = join(this.dir, name);
|
|
43
56
|
writeFileSync(file, data);
|
|
44
57
|
this.enforceCap();
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
58
|
+
const origin = this.origin();
|
|
59
|
+
// 有同源地址时回绝对 URL(工具结果在聊天里也能直接点开);否则用同源相对路径。
|
|
60
|
+
const url = origin
|
|
61
|
+
? `${origin}/dsh-gsv-tts/audio/${name}`
|
|
62
|
+
: `/dsh-gsv-tts/audio/${name}`;
|
|
48
63
|
return { url, name };
|
|
49
64
|
}
|
|
50
65
|
/** 服务 `/dsh-gsv-tts/audio/<file>` 请求。 */
|
package/lib/audio-store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio-store.js","sourceRoot":"","sources":["../src/audio-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAC/G,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAG5B;;;;;;;GAOG;AAEH,MAAM,SAAS,GAAG,GAAG,CAAC;AACtB,MAAM,OAAO,GAAG,kCAAkC,CAAC;AAEnD,4CAA4C;AAC5C,SAAS,OAAO,CAAC,IAAY;IAC3B,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC;AAC1E,CAAC;AASD,MAAM,OAAO,UAAU;
|
|
1
|
+
{"version":3,"file":"audio-store.js","sourceRoot":"","sources":["../src/audio-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAC/G,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAG5B;;;;;;;GAOG;AAEH,MAAM,SAAS,GAAG,GAAG,CAAC;AACtB,MAAM,OAAO,GAAG,kCAAkC,CAAC;AAEnD,4CAA4C;AAC5C,SAAS,OAAO,CAAC,IAAY;IAC3B,OAAO,IAAI,CAAC,WA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