dsh-gsv-tts 4.1.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/CHANGELOG_EN.md +23 -0
- package/README.md +22 -10
- package/README_EN.md +21 -9
- package/docs/PUBLISHING.md +8 -0
- package/docs/VOICE_MARKET.md +189 -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 +20 -14
- package/scripts/verify-manifest.mjs +21 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
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.1] - 2026-10-29
|
|
6
|
+
|
|
7
|
+
### 音色市场投稿指南
|
|
8
|
+
- 新增中英双语《音色市场投稿指南》:[docs/VOICE_MARKET.md](docs/VOICE_MARKET.md),包含上传流程、音频要求、许可与授权、审核与上架、安装与常见问题,鼓励用户分享自己喜欢的音色
|
|
9
|
+
- README / README_EN 顶部新增「音色市场」徽章与投稿指南入口;功能亮点补充投稿链接
|
|
10
|
+
- npm 包新增 `docs/VOICE_MARKET.md`(随包分发)
|
|
11
|
+
- 仅文档变更,不涉及运行时代码
|
|
12
|
+
|
|
13
|
+
## [5.0.0] - 2026-10-26
|
|
14
|
+
|
|
15
|
+
### 适配 DSH 0.2.1-rc.2(破坏性变更)
|
|
16
|
+
- **运行环境**:`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。
|
|
17
|
+
- **设置服务迁移**:DSH 0.2 移除了 `ctx.settings.register()` / `settingsScope`,改为「Config Schema 推导表单」:
|
|
18
|
+
- `Config` 全字段标记 `Schema.volatile()`,设置面板可即时编辑,保存后宿主**就地更新配置引用、不重载插件**;
|
|
19
|
+
- 运行时统一通过 `snapshotConfig()` 解引用 volatile 配置(兼容普通对象),每次操作读取最新值;
|
|
20
|
+
- 写回(provider 迁移、音色市场安装/卸载)改走 `ctx.settings.update(entryId, patch)`。
|
|
21
|
+
- **客户端服务迁移**:`settingsScope` → `configForms`(`ctx.configForms.get(ns)`);设置卡片兼容 `loading` / `unavailable` 状态,不再因设置服务缺失而空白。
|
|
22
|
+
- **会话读取**:`/speak` 改用 `session.snapshotEvents()`(DSH 0.2 不再保证 `session.events` / `session.log`)。
|
|
23
|
+
- **音频地址**:`AudioStore` 改为按需读取 `ctx.webServer.getOrigin()`,避免监听绑定前 `port` 未定义导致的错误地址;无同源地址时退回同源相对路径。
|
|
24
|
+
- **provider 迁移**:无 `provider` 字段时按「有音色 → gsv,无音色 → edge」判定,并在 Loader 就绪后写回一次(幂等)。
|
|
25
|
+
- **插件清单**:`dsh.client.inject` 清理为 DSH 0.2 实际存在的包(client-modules / locale / ui-slots / ui-settings);移除已不存在的 `dsh-client-runtime`。
|
|
26
|
+
- 新增单测:volatile 配置解引用、就地热更新语义、迁移判定;构建/测试与真实 DSH 0.2.1 profile 启动、设置读写、provider 热切换均通过验证。
|
|
27
|
+
|
|
5
28
|
## [4.1.0] - 2026-08-31
|
|
6
29
|
|
|
7
30
|
### Edge 音色体验优化
|
package/CHANGELOG_EN.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
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.1] - 2026-10-29
|
|
6
|
+
|
|
7
|
+
### Voice market submission guide
|
|
8
|
+
- Added a bilingual voice market submission guide: [docs/VOICE_MARKET.md](docs/VOICE_MARKET.md) — upload flow, audio requirements, licensing and consent, review and publishing, installation, and FAQ; encourages sharing favorite voices
|
|
9
|
+
- README / README_EN now show a Voice Market badge and a submission-guide link at the top; the feature list links to the guide
|
|
10
|
+
- npm package now includes `docs/VOICE_MARKET.md`
|
|
11
|
+
- Documentation only; no runtime code changes
|
|
12
|
+
|
|
13
|
+
## [5.0.0] - 2026-10-26
|
|
14
|
+
|
|
15
|
+
### Adapted to DSH 0.2.1-rc.2 (breaking)
|
|
16
|
+
- **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.
|
|
17
|
+
- **Settings service migration**: DSH 0.2 removed `ctx.settings.register()` / `settingsScope` in favor of forms derived from the plugin Config schema:
|
|
18
|
+
- 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**;
|
|
19
|
+
- the host reads all values through `snapshotConfig()`, which unwraps volatile references (and still accepts plain objects), so each operation sees the latest values;
|
|
20
|
+
- writes (provider migration, voice-market install/uninstall) now use `ctx.settings.update(entryId, patch)`.
|
|
21
|
+
- **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.
|
|
22
|
+
- **Session reads**: `/speak` now uses `session.snapshotEvents()` (DSH 0.2 no longer guarantees `session.events` / `session.log`).
|
|
23
|
+
- **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.
|
|
24
|
+
- **provider migration**: with no `provider` field, the plugin resolves "voices present → gsv, none → edge" and persists it once after the loader settles (idempotent).
|
|
25
|
+
- **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.
|
|
26
|
+
- 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.
|
|
27
|
+
|
|
5
28
|
## [4.1.0] - 2026-08-31
|
|
6
29
|
|
|
7
30
|
### Edge voice experience polish
|
package/README.md
CHANGED
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|

|
|
8
8
|

|
|
9
9
|
[](https://awesome-dsh-plugin.com/p/TaoruiLiu19/dsh-gsv/)
|
|
10
|
+
[](https://taoruiliu19.github.io/gsv-market/)
|
|
11
|
+
|
|
12
|
+
音色市场:[taoruiliu19.github.io/gsv-market](https://taoruiliu19.github.io/gsv-market/) · 投稿指南:[docs/VOICE_MARKET.md](docs/VOICE_MARKET.md)
|
|
10
13
|
|
|
11
14
|
English README: [README_EN.md](README_EN.md) · 变更记录: [CHANGELOG.md](CHANGELOG.md)
|
|
12
15
|
|
|
@@ -20,7 +23,7 @@ English README: [README_EN.md](README_EN.md) · 变更记录: [CHANGELOG.md](CHA
|
|
|
20
23
|
- 🔁 **自动朗读**:开启后自动朗读助手回复;新回复默认打断当前朗读(barge-in),可在设置中关闭
|
|
21
24
|
- 🔄 **模式切换**:设置面板一键在"快速体验 / 本地专业"间切换,音色与状态实时跟随
|
|
22
25
|
- 🎛️ **声音设置面板**:可视化配置,**保存即热生效**(无需重启);每条音色可"试听",或"全部试听"循环对比
|
|
23
|
-
- 🎪
|
|
26
|
+
- 🎪 **音色市场**:从内置/自定义远端清单**一键下载并注入音色**,试听后安装、只读托管;内置可信源免确认,远端源二次确认;欢迎[投稿](docs/VOICE_MARKET.md)分享你喜欢的音色
|
|
24
27
|
- 🚀 **引擎一键启停 / 一键安装**:本地 GSV 引擎启停(模型加载约 15~90 秒)与自动安装,均由设置面板/工具完成
|
|
25
28
|
- 🔗 **同源音频短链接**:合成音频落盘并同源提供,不再撑爆模型上下文
|
|
26
29
|
|
|
@@ -34,6 +37,8 @@ English README: [README_EN.md](README_EN.md) · 变更记录: [CHANGELOG.md](CHA
|
|
|
34
37
|
| "我要**克隆自己的声音 / 完全离线**" | 🖥️ **本地专业(GSV)** | 见下方「二、本地专业模式」 |
|
|
35
38
|
|
|
36
39
|
> **默认模式**:全新安装默认为 **Edge 快速体验**(联网即用);**从旧版本升级的老用户仍保持 GSV 本地模式、声音不变**,可随时在设置面板切换。
|
|
40
|
+
>
|
|
41
|
+
> **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
42
|
|
|
38
43
|
### 一、快速体验模式(Edge,新装默认)
|
|
39
44
|
|
|
@@ -71,7 +76,9 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
71
76
|
|
|
72
77
|
安装后重启 DSH,工具自动注册到 agent,设置中出现"声音设置"项。
|
|
73
78
|
|
|
74
|
-
> 依赖 DSH 的 `webServer` 服务(Web / Desktop profile 自带)提供音频下载;`settings`
|
|
79
|
+
> 依赖 DSH 的 `webServer` 服务(Web / Desktop profile 自带)提供音频下载;`settings` 服务提供设置面板。环境缺少这些服务时仅保留工具能力。
|
|
80
|
+
|
|
81
|
+
> **从 4.x 升级**:直接安装新版即可,配置自动沿用;首次启动会把 `provider` 落定写回一次(有音色的老配置保持 `gsv`,全新安装为 `edge`),之后设置保存通过 DSH 0.2 的 volatile 配置就地热更新,不再重载插件。
|
|
75
82
|
|
|
76
83
|
## 🔄 模式切换与迁移
|
|
77
84
|
|
|
@@ -79,8 +86,9 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
79
86
|
|---|---|
|
|
80
87
|
| 如何切换 | 设置 → 声音设置 → **TTS 模式**(快速体验 / 本地专业),切换即时生效 |
|
|
81
88
|
| 配置项 | `provider: 'edge' \| 'gsv'`(初始化分派,建议经设置面板切换,勿手动改) |
|
|
82
|
-
| 老用户升级 | 无 `provider`
|
|
83
|
-
| 全新安装 | 默认 `edge` 云端简单模式,联网即用 |
|
|
89
|
+
| 老用户升级 | 无 `provider` 字段的旧配置:**有音色预设 → 保持 `gsv` 本地模式,声音不变** |
|
|
90
|
+
| 全新安装 | 无音色预设 → 默认 `edge` 云端简单模式,联网即用 |
|
|
91
|
+
| 写入时机 | 首次启动判定后写回一次(`settings.update`),之后不再改写 |
|
|
84
92
|
| `schemaVersion` | 配置结构版本,迁移守卫的落点 |
|
|
85
93
|
|
|
86
94
|
> Edge 模式需联网;若云端不可用,面板会提示"云端通道拥挤 / 暂不可用",本地 GSV 模式始终可用作降级。
|
|
@@ -160,6 +168,8 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
160
168
|
|
|
161
169
|
从音色市场一键下载并注入音色,无需手动填写参考音频路径。
|
|
162
170
|
|
|
171
|
+
> 🌐 **在线试听网站**:[https://taoruiliu19.github.io/gsv-market/](https://taoruiliu19.github.io/gsv-market/) —— 浏览、试听、下载市场中的全部音色,无需安装插件。
|
|
172
|
+
|
|
163
173
|
1. 打开 设置 → 声音设置 → **音色市场**
|
|
164
174
|
2. 浏览音色卡片(来源、作者、许可),点 **试听** 预听
|
|
165
175
|
3. 点 **安装**:
|
|
@@ -168,7 +178,7 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
168
178
|
4. 安装后音色自动加入"音色预设",即可在 🔊 / `tts_speak` 中选用
|
|
169
179
|
5. 市场安装的音色在面板中**只读**(仅可卸载),防止误改破坏账本;点 **卸载** 可(提示)同时删除本地音频
|
|
170
180
|
|
|
171
|
-
>
|
|
181
|
+
> **信任规则(A+ 混合模式)**:包内 `docs/voices.json` 收录的音色始终视为 trusted(随包发布已审计),即便经远端清单展示也免确认;远端清单中新增的音色(包内未收录)一律二次确认。合并时以 id 为键,包内优先,远端只补充新 id。自定义音色请在"音色预设"手工添加。
|
|
172
182
|
|
|
173
183
|
## 🎙️ 添加音色(本地 GSV)
|
|
174
184
|
|
|
@@ -200,13 +210,13 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
200
210
|
| `installDir` | 引擎安装目录 | `./GSV-TTS-Lite` |
|
|
201
211
|
| `autoPlay` | 自动朗读助手回复 | `false` |
|
|
202
212
|
| `interruptOnNew` | 自动朗读时新回复是否打断当前朗读(关闭则朗读中跳过,避免叠音) | `true` |
|
|
203
|
-
| `voiceRegistryUrl` |
|
|
213
|
+
| `voiceRegistryUrl` | 音色市场远端清单地址(默认指向在线试听站点;留空仅用包内离线清单) | 站点 URL |
|
|
204
214
|
| `provider` | `gsv` \| `edge`(初始化分派,勿手动改;设置面板切换) | 见"TTS 模式" |
|
|
205
215
|
| `schemaVersion` | 配置结构版本(迁移守卫落点) | `1` |
|
|
206
216
|
| `quotaDaily` | 云端简单模式每日配额(`null`=不限量,仅引导用) | `null` |
|
|
207
217
|
| `voices` | 音色预设列表 | 空 |
|
|
208
218
|
|
|
209
|
-
|
|
219
|
+
配置保存在当前 profile 的配置层(`~/.dsh/profiles/<profile>/cordis.patch.yml` 的 `dsh-gsv-tts:` 条目)。DSH 0.2 起这些字段是 **volatile 配置**:设置面板保存后宿主就地更新配置引用,插件无需重载即可读到新值。
|
|
210
220
|
|
|
211
221
|
## 🧰 工具列表
|
|
212
222
|
|
|
@@ -225,12 +235,14 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
|
|
|
225
235
|
- **朗读按钮报"语音引擎未启动"**:如果你用的是本地 GSV 模式,先到声音设置启动引擎;不想装引擎就切回 Edge 云端模式。
|
|
226
236
|
- **云端音色有的读不了?**:确认网络畅通;云端通道受限时可切本地 GSV。
|
|
227
237
|
- **参考音频不可用**:必须是引擎服务端可访问的本地路径或 URL。
|
|
238
|
+
- **DSH 0.1.x 里插件被禁用 / 启动报不兼容**:5.0.0 只支持 DSH 0.2.1-rc.2+,请升级 DSH 或改装 4.x 插件。
|
|
239
|
+
- **声音设置显示"设置不可用"**:当前宿主没有提供设置服务(精简部署);工具能力仍然可用。
|
|
228
240
|
|
|
229
241
|
## 🛠️ 技术栈
|
|
230
242
|
|
|
231
|
-
- DSH 插件框架:Cordis + `@deepseek-ai/dsh-tools`
|
|
232
|
-
- 配置 Schema:`@deepseek-ai/schemastery
|
|
233
|
-
-
|
|
243
|
+
- DSH 插件框架:Cordis + `@deepseek-ai/dsh-tools` 0.2.1
|
|
244
|
+
- 配置 Schema:`@deepseek-ai/schemastery`(volatile 字段 + 就地热更新)
|
|
245
|
+
- 设置面板:宿主 `settings` 服务(`describe`/`update`)+ 客户端 `configForms` 服务 + `settings.section` 插槽
|
|
234
246
|
- 云端 Provider:`edge-tts-universal`(微软网络音色,MP3 流)
|
|
235
247
|
- 本地引擎:GSV-TTS-Lite 0.4.7
|
|
236
248
|
- 语言:TypeScript(宿主)/ 手写客户端 bundle(浏览器)/ Python(本地流式 API)
|
package/README_EN.md
CHANGED
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|

|
|
8
8
|

|
|
9
9
|
[](https://awesome-dsh-plugin.com/p/TaoruiLiu19/dsh-gsv/)
|
|
10
|
+
[](https://taoruiliu19.github.io/gsv-market/)
|
|
11
|
+
|
|
12
|
+
Voice Market: [taoruiliu19.github.io/gsv-market](https://taoruiliu19.github.io/gsv-market/) · Submission guide: [docs/VOICE_MARKET.md](docs/VOICE_MARKET.md)
|
|
10
13
|
|
|
11
14
|
中文 README: [README.md](README.md) · Changelog: [CHANGELOG_EN.md](CHANGELOG_EN.md)
|
|
12
15
|
|
|
@@ -20,7 +23,7 @@
|
|
|
20
23
|
- 🔁 **Auto-read**: automatically reads assistant replies; new replies interrupt the current read by default (barge-in), toggleable in settings
|
|
21
24
|
- 🔄 **Mode switching**: one click in the settings panel between "Quick / Local Pro"; voices and status follow live
|
|
22
25
|
- 🎛️ **Voice Settings panel**: configure everything visually, **hot-applied** (no restart); preview any voice individually or loop-preview all for comparison
|
|
23
|
-
- 🎪 **Voice Market**: **one-click download and injection** of voices from the bundled or a custom remote manifest, with preview-before-install and read-only management; bundled trusted sources install without confirmation, remote sources require a second confirmation
|
|
26
|
+
- 🎪 **Voice Market**: **one-click download and injection** of voices from the bundled or a custom remote manifest, with preview-before-install and read-only management; bundled trusted sources install without confirmation, remote sources require a second confirmation; [submit your favorite voices](docs/VOICE_MARKET.md)
|
|
24
27
|
- 🚀 **One-click engine start/stop & setup**: local GSV engine control (model loading ~15–90 s) and auto-install, all from the settings panel / tools
|
|
25
28
|
- 🔗 **Same-origin audio short links**: synthesized audio is saved and served same-origin — no more giant data URLs in the model context
|
|
26
29
|
|
|
@@ -34,6 +37,8 @@
|
|
|
34
37
|
| "I want to **clone my own voice / be fully offline**" | 🖥️ **Local Pro Mode (GSV)** | See "Local Pro Mode (GSV)" below |
|
|
35
38
|
|
|
36
39
|
> **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.
|
|
40
|
+
>
|
|
41
|
+
> **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
42
|
|
|
38
43
|
### 1. Quick Mode (Edge, default for new installs)
|
|
39
44
|
|
|
@@ -73,14 +78,17 @@ After installing, restart DSH. The tools register automatically and a "Voice Set
|
|
|
73
78
|
|
|
74
79
|
> 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
80
|
|
|
81
|
+
> **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.
|
|
82
|
+
|
|
76
83
|
## 🔄 Mode Switching & Migration
|
|
77
84
|
|
|
78
85
|
| Item | Description |
|
|
79
86
|
|---|---|
|
|
80
87
|
| How to switch | Settings → Voice Settings → **TTS Mode** (Quick / Local Pro), applied instantly |
|
|
81
88
|
| 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 |
|
|
89
|
+
| Existing users upgrading | Old config with no `provider` field: **voices present → stays `gsv` local mode, voices unchanged** |
|
|
90
|
+
| Fresh installs | No voices → defaults to `edge` cloud Quick mode, ready online |
|
|
91
|
+
| When it is written | Resolved once on first boot and persisted via `settings.update`; never rewritten afterwards |
|
|
84
92
|
| `schemaVersion` | Config schema version — the migration guard marker |
|
|
85
93
|
|
|
86
94
|
> 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 +168,8 @@ Ask the agent to call `tts_setup_engine`. It automatically: detects Python → i
|
|
|
160
168
|
|
|
161
169
|
Download and inject voices from the Voice Market in one click — no need to fill in reference audio paths manually.
|
|
162
170
|
|
|
171
|
+
> 🌐 **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.
|
|
172
|
+
|
|
163
173
|
1. Open Settings → Voice Settings → **Voice Market**
|
|
164
174
|
2. Browse the voice cards (source, author, license); click **Preview** to listen
|
|
165
175
|
3. Click **Install**:
|
|
@@ -168,7 +178,7 @@ Download and inject voices from the Voice Market in one click — no need to fil
|
|
|
168
178
|
4. Installed voices are added to "Voice presets" and can be used from 🔊 / `tts_speak`
|
|
169
179
|
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
180
|
|
|
171
|
-
> **Trust rule**:
|
|
181
|
+
> **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
182
|
|
|
173
183
|
## 🎙️ Adding a Voice (local GSV)
|
|
174
184
|
|
|
@@ -200,13 +210,13 @@ Download and inject voices from the Voice Market in one click — no need to fil
|
|
|
200
210
|
| `installDir` | Engine install directory | `./GSV-TTS-Lite` |
|
|
201
211
|
| `autoPlay` | Auto-read assistant replies | `false` |
|
|
202
212
|
| `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
|
|
213
|
+
| `voiceRegistryUrl` | Remote voice-market manifest URL (defaults to the online audition site; empty = bundled offline only) | site URL |
|
|
204
214
|
| `provider` | `gsv` \| `edge` (assigned at init; switch in the settings panel) | see "TTS Mode" |
|
|
205
215
|
| `schemaVersion` | Config schema version (migration guard marker) | `1` |
|
|
206
216
|
| `quotaDaily` | Daily quota for cloud simple mode (`null` = unlimited; guidance only) | `null` |
|
|
207
217
|
| `voices` | Voice preset list | empty |
|
|
208
218
|
|
|
209
|
-
Config is stored in
|
|
219
|
+
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
220
|
|
|
211
221
|
## 🧰 Tools
|
|
212
222
|
|
|
@@ -225,12 +235,14 @@ Config is stored in DSH settings (the `dsh-gsv-tts:` section of `~/.dsh/settings
|
|
|
225
235
|
- **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
236
|
- **Some cloud voices won't read?**: make sure the network is up; when the cloud channel is limited, switch to local GSV
|
|
227
237
|
- **Reference audio unavailable**: use a local path accessible from the engine host or a reachable URL
|
|
238
|
+
- **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
|
|
239
|
+
- **Voice Settings says "settings unavailable"**: the host provides no settings service (minimal deployment); tool capabilities still work
|
|
228
240
|
|
|
229
241
|
## 🛠️ Tech Stack
|
|
230
242
|
|
|
231
|
-
- DSH plugin framework: Cordis + `@deepseek-ai/dsh-tools`
|
|
232
|
-
- Config schema: `@deepseek-ai/schemastery`
|
|
233
|
-
- Settings panel:
|
|
243
|
+
- DSH plugin framework: Cordis + `@deepseek-ai/dsh-tools` 0.2.1
|
|
244
|
+
- Config schema: `@deepseek-ai/schemastery` (volatile fields with in-place live updates)
|
|
245
|
+
- Settings panel: host `settings` service (`describe`/`update`) + client `configForms` service + `settings.section` slots
|
|
234
246
|
- Cloud provider: `edge-tts-universal` (Microsoft web voices, MP3 stream)
|
|
235
247
|
- Local engine: GSV-TTS-Lite 0.4.7
|
|
236
248
|
- 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
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
# dsh-gsv 音色市场 · 投稿指南
|
|
2
|
+
|
|
3
|
+
> [中文](#中文) · [English](#english) · [返回音色市场](https://taoruiliu19.github.io/gsv-market/)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<a id="中文"></a>
|
|
8
|
+
|
|
9
|
+
## 中文
|
|
10
|
+
|
|
11
|
+
### 这是什么
|
|
12
|
+
|
|
13
|
+
[dsh-gsv 音色市场](https://taoruiliu19.github.io/gsv-market/) 是 DSH 插件 `dsh-gsv-tts` 的公开音色库:浏览、试听、一键安装社区分享的音色。它由所有愿意分享声音的人一起共建——**你上传的每一个音色,都会出现在网页和插件的音色市场里**。
|
|
14
|
+
|
|
15
|
+
### 为什么上传
|
|
16
|
+
|
|
17
|
+
- **让喜欢的声音被更多人用上**:试听、下载、一键安装,全流程免费。
|
|
18
|
+
- **作者署名**:音色卡片会公开展示作者姓名,好声音值得被记住。
|
|
19
|
+
- **一次上传,两处可用**:网页和插件共用同一份清单,不用重复提交。
|
|
20
|
+
- **完全开源**:清单、音频、审核流程都在公开仓库里,透明可查。
|
|
21
|
+
|
|
22
|
+
把你珍藏的、自己录的、拿到授权的好声音分享出来吧。
|
|
23
|
+
|
|
24
|
+
### 可以上传什么
|
|
25
|
+
|
|
26
|
+
✅ 欢迎:
|
|
27
|
+
|
|
28
|
+
- 你自己的声音(朗读、台词、配音片段等)
|
|
29
|
+
- 你获得**明确授权**可以分发的声音
|
|
30
|
+
- 无版权争议的素材(CC0、公共领域等)
|
|
31
|
+
|
|
32
|
+
🚫 请勿上传:
|
|
33
|
+
|
|
34
|
+
- 未获得授权的他人声音(包括明星、主播、亲友)
|
|
35
|
+
- 用于冒充、诈骗、虚假信息的声音
|
|
36
|
+
- 含侵权音乐、违法或不当内容的音频
|
|
37
|
+
|
|
38
|
+
上传即表示你确认拥有该声音的合法分发授权,并同意按所选许可公开展示与分发。
|
|
39
|
+
|
|
40
|
+
### 准备音频
|
|
41
|
+
|
|
42
|
+
| 项目 | 建议 |
|
|
43
|
+
|---|---|
|
|
44
|
+
| 时长 | **5–15 秒最佳**,最长 30 秒(上传页会自动截取前 30 秒) |
|
|
45
|
+
| 内容 | 单人说话,清晰、干净,**不要背景音乐**、不要混响和噪声 |
|
|
46
|
+
| 格式 | wav / mp3 / ogg / flac / m4a,≤15MB |
|
|
47
|
+
| 提示文本 | 填上音频里说的话,克隆效果通常更好(可留空) |
|
|
48
|
+
|
|
49
|
+
### 上传步骤
|
|
50
|
+
|
|
51
|
+
1. 打开 [上传页](https://taoruiliu19.github.io/gsv-market/upload.html)(需要 GitHub 账号)。
|
|
52
|
+
2. 选择或录制音频,页面会自动裁剪到 30 秒内并转成单声道 WAV。
|
|
53
|
+
3. 填写名称、**作者姓名**、许可协议、语言、标签和提示文本。
|
|
54
|
+
4. 勾选授权声明,点击“生成音色包并打开 GitHub”。
|
|
55
|
+
5. 把下载好的 `.gsvvoice` 文件拖进打开的 Issue 正文,提交即可。
|
|
56
|
+
|
|
57
|
+
### 审核与上架
|
|
58
|
+
|
|
59
|
+
1. 提交后自动校验:格式、时长、声道、采样率、体积、SHA-256 查重。
|
|
60
|
+
2. 通过后打上 `validated` 标签,评论里会显示名称、作者、许可、时长和音色 ID。
|
|
61
|
+
3. 维护者试听后添加 `approved` 标签。
|
|
62
|
+
4. 工作流自动转码、写入清单并部署, Issue 打上 `published` 并关闭。
|
|
63
|
+
5. GitHub Pages 部署完成后,网页和插件市场即可看到(通常几分钟内)。
|
|
64
|
+
|
|
65
|
+
审核通常需要 1–3 天,取决于维护者时间;节假日可能更久。
|
|
66
|
+
|
|
67
|
+
### 安装与使用
|
|
68
|
+
|
|
69
|
+
- **插件内**:设置 → 声音设置 → 音色市场 → 选择音色安装。
|
|
70
|
+
- **让 agent 安装**:复制音色卡片上的安装命令,例如
|
|
71
|
+
`帮我安装音色 voice-xxxxxxxx(来自 dsh-gsv-tts 音色市场)`。
|
|
72
|
+
- **网页上**:可直接试听、下载音频,或复制安装命令。
|
|
73
|
+
|
|
74
|
+
### 常见问题
|
|
75
|
+
|
|
76
|
+
**为什么必须用 GitHub 账号?**
|
|
77
|
+
身份可追溯、方便审核与防滥用;投稿和审核记录都留在公开 Issue 里,透明可查。
|
|
78
|
+
|
|
79
|
+
**审核没通过怎么办?**
|
|
80
|
+
看 Issue 里的评论,按提示修改音频或信息,重新编辑 Issue 正文(重新拖入新的 `.gsvvoice`)即可自动重跑。
|
|
81
|
+
|
|
82
|
+
**可以下架自己的音色吗?**
|
|
83
|
+
可以。在 [gsv-market 仓库](https://github.com/TaoruiLiu19/gsv-market/issues) 提 Issue 申请下架,维护者会移除条目和音频。
|
|
84
|
+
|
|
85
|
+
**音质有什么要求?**
|
|
86
|
+
干净的人声比高码率更重要:安静环境、单人、无明显背景音乐和噪声,5–15 秒通常就够。
|
|
87
|
+
|
|
88
|
+
**可以上传多个吗?**
|
|
89
|
+
可以,每个音色单独提交一次,方便分别审核和署名。
|
|
90
|
+
|
|
91
|
+
### 相关链接
|
|
92
|
+
|
|
93
|
+
- [音色市场](https://taoruiliu19.github.io/gsv-market/)
|
|
94
|
+
- [上传音色](https://taoruiliu19.github.io/gsv-market/upload.html)
|
|
95
|
+
- [插件仓库](https://github.com/TaoruiLiu19/dsh-gsv)
|
|
96
|
+
- [市场仓库](https://github.com/TaoruiLiu19/gsv-market)
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
<a id="english"></a>
|
|
101
|
+
|
|
102
|
+
## English
|
|
103
|
+
|
|
104
|
+
### What this is
|
|
105
|
+
|
|
106
|
+
The [dsh-gsv Voice Market](https://taoruiliu19.github.io/gsv-market/) is the public voice library for the DSH plugin `dsh-gsv-tts`: browse, preview, and install community-shared voices in one click. It is built by everyone who is willing to share a voice — **every voice you upload appears in both the website and the plugin's voice market**.
|
|
107
|
+
|
|
108
|
+
### Why upload
|
|
109
|
+
|
|
110
|
+
- **Let a voice you love reach more people**: preview, download, and one-click install, all free.
|
|
111
|
+
- **Author credit**: the voice card shows the author's name publicly.
|
|
112
|
+
- **Upload once, use everywhere**: the website and the plugin share the same manifest.
|
|
113
|
+
- **Fully open source**: the manifest, audio, and review workflow all live in a public repository.
|
|
114
|
+
|
|
115
|
+
Share the voices you have recorded, collected, or been authorized to distribute.
|
|
116
|
+
|
|
117
|
+
### What you can upload
|
|
118
|
+
|
|
119
|
+
✅ Welcome:
|
|
120
|
+
|
|
121
|
+
- Your own voice (reading, lines, dubbing clips, etc.)
|
|
122
|
+
- Voices you have **explicit permission** to distribute
|
|
123
|
+
- Material with no copyright concerns (CC0, public domain, etc.)
|
|
124
|
+
|
|
125
|
+
🚫 Please do not upload:
|
|
126
|
+
|
|
127
|
+
- Voices of other people without permission (celebrities, streamers, friends, family)
|
|
128
|
+
- Voices used for impersonation, fraud, or disinformation
|
|
129
|
+
- Audio containing infringing music, illegal, or inappropriate content
|
|
130
|
+
|
|
131
|
+
By uploading, you confirm that you have the right to distribute the voice and agree to publish it under the selected license.
|
|
132
|
+
|
|
133
|
+
### Prepare your audio
|
|
134
|
+
|
|
135
|
+
| Item | Recommendation |
|
|
136
|
+
|---|---|
|
|
137
|
+
| Length | **5–15 seconds is ideal**, 30 seconds max (the upload page trims to the first 30s) |
|
|
138
|
+
| Content | Single speaker, clean and clear, **no background music**, no reverb or noise |
|
|
139
|
+
| Format | wav / mp3 / ogg / flac / m4a, ≤15MB |
|
|
140
|
+
| Prompt text | Transcribe what is said in the audio; it usually improves cloning (optional) |
|
|
141
|
+
|
|
142
|
+
### How to upload
|
|
143
|
+
|
|
144
|
+
1. Open the [upload page](https://taoruiliu19.github.io/gsv-market/upload.html) (a GitHub account is required).
|
|
145
|
+
2. Choose or record audio; the page trims it to 30 seconds and converts it to mono WAV.
|
|
146
|
+
3. Fill in the name, **author name**, license, language, tags, and prompt text.
|
|
147
|
+
4. Tick the consent box and click "Generate voice pack and open GitHub".
|
|
148
|
+
5. Drag the downloaded `.gsvvoice` file into the opened issue and submit.
|
|
149
|
+
|
|
150
|
+
### Review and publishing
|
|
151
|
+
|
|
152
|
+
1. Automatic validation: format, duration, channels, sample rate, size, and SHA-256 duplicate check.
|
|
153
|
+
2. On success the issue gets the `validated` label, with a comment listing name, author, license, duration, and voice ID.
|
|
154
|
+
3. A maintainer listens and adds the `approved` label.
|
|
155
|
+
4. The workflow transcodes the audio, updates the manifest, deploys, labels the issue `published`, and closes it.
|
|
156
|
+
5. Once GitHub Pages finishes deploying (usually within minutes), the voice appears on the website and in the plugin.
|
|
157
|
+
|
|
158
|
+
Review usually takes 1–3 days depending on maintainer availability.
|
|
159
|
+
|
|
160
|
+
### Install and use
|
|
161
|
+
|
|
162
|
+
- **In the plugin**: Settings → Voice Settings → Voice Market → install.
|
|
163
|
+
- **Ask the agent**: copy the install command from the voice card, for example
|
|
164
|
+
`帮我安装音色 voice-xxxxxxxx(来自 dsh-gsv-tts 音色市场)`.
|
|
165
|
+
- **On the website**: preview, download the audio, or copy the install command.
|
|
166
|
+
|
|
167
|
+
### FAQ
|
|
168
|
+
|
|
169
|
+
**Why is a GitHub account required?**
|
|
170
|
+
It provides traceable identity, makes review and abuse prevention easier, and keeps the submission and review history public.
|
|
171
|
+
|
|
172
|
+
**What if validation fails?**
|
|
173
|
+
Read the comment on the issue, fix the audio or metadata, then edit the issue body and drag in the new `.gsvvoice`; validation reruns automatically.
|
|
174
|
+
|
|
175
|
+
**Can I remove my voice later?**
|
|
176
|
+
Yes. Open an issue in the [gsv-market repository](https://github.com/TaoruiLiu19/gsv-market/issues) requesting removal; a maintainer will remove the entry and audio.
|
|
177
|
+
|
|
178
|
+
**What audio quality do you need?**
|
|
179
|
+
Clean speech matters more than bitrate: quiet room, single speaker, no obvious music or noise. 5–15 seconds is usually enough.
|
|
180
|
+
|
|
181
|
+
**Can I upload several voices?**
|
|
182
|
+
Yes, submit each voice separately so they can be reviewed and credited individually.
|
|
183
|
+
|
|
184
|
+
### Links
|
|
185
|
+
|
|
186
|
+
- [Voice Market](https://taoruiliu19.github.io/gsv-market/)
|
|
187
|
+
- [Upload a voice](https://taoruiliu19.github.io/gsv-market/upload.html)
|
|
188
|
+
- [Plugin repository](https://github.com/TaoruiLiu19/dsh-gsv)
|
|
189
|
+
- [Market repository](https://github.com/TaoruiLiu19/gsv-market)
|
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"}
|