dsh-gsv-tts 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
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.1.0] - 2026-11-06
6
+
7
+ ### 首音性能优化(GSV 本地)
8
+ - **朗读改为流式 WAV**:引擎首块到达即开始播放,不再等整条回复全部分段合成完;长回复首音明显更快(常驻模式较快;节能模式首次需加载,较慢)
9
+ - **推理预热**:引擎启动后先跑一次极短推理,避免第一次真实请求额外等待 CUDA/惰性初始化
10
+ - **新增 `/warmup` 音色预热**:缓存 speaker/prompt 特征并跑一次短推理;插件在引擎就绪后自动预热默认音色,首次使用不再重复付特征计算
11
+ - **新增引擎启动方式 `engineMode`**:**常驻模式(性能优先)** 插件加载后自动启动并预热,**节能模式(资源优先,默认)** 不后台启动(与旧版一致);常驻约 0.9GB 显存 + 0.5GB 内存
12
+ - **分段策略调整**:首段 ≤30 字、后续段 ≤150 字(JSON/NDJSON 回退路径),降低单段 30 秒超时风险
13
+ - **取消联动**:浏览器停止/切歌/关页时中断引擎请求,避免旧任务占用推理锁
14
+ - 引擎就绪轮询从 3 秒降到 0.5 秒,启动等待上限 90 秒提高到 120 秒
15
+ - 新增 `src/wav-stream.ts`(未知长度 WAV 头、float32→16-bit PCM)及单元测试
16
+ - 修复切换「在线 / 本地」模式时音色列表未按目标 provider 获取的问题(切到在线曾可能带入本地音色名)
17
+
18
+ ## [5.0.1] - 2026-10-29
19
+
20
+ ### 音色市场投稿指南
21
+ - 新增中英双语《音色市场投稿指南》:[docs/VOICE_MARKET.md](docs/VOICE_MARKET.md),包含上传流程、音频要求、许可与授权、审核与上架、安装与常见问题,鼓励用户分享自己喜欢的音色
22
+ - README / README_EN 顶部新增「音色市场」徽章与投稿指南入口;功能亮点补充投稿链接
23
+ - npm 包新增 `docs/VOICE_MARKET.md`(随包分发)
24
+ - 仅文档变更,不涉及运行时代码
25
+
5
26
  ## [5.0.0] - 2026-10-26
6
27
 
7
28
  ### 适配 DSH 0.2.1-rc.2(破坏性变更)
package/CHANGELOG_EN.md CHANGED
@@ -2,6 +2,27 @@
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.1.0] - 2026-11-06
6
+
7
+ ### Faster first audio (local GSV)
8
+ - **Read-aloud now uses a streaming WAV**: playback starts as soon as the engine emits its first chunk, instead of waiting for the whole reply to be segmented and synthesized; first audio on long replies is much faster (Always-on: faster; Eco: slower on the first use because the model loads)
9
+ - **Inference warm-up** after engine start avoids the extra CUDA/lazy-init cost on the first real request
10
+ - **New `/warmup` endpoint**: caches speaker/prompt features and runs a short inference; the plugin pre-warms the default voice once the engine is ready
11
+ - **New `engineMode` setting**: **Always-on (performance)** auto-starts and pre-warms on plugin load; **Eco (resources first, default)** does not run in the background (same as before). Always-on holds ~0.9 GB VRAM + 0.5 GB RAM
12
+ - **Segment sizing**: first segment ≤30 chars, later segments ≤150 chars (JSON/NDJSON fallback path) to avoid the 30 s per-segment timeout
13
+ - **Cancellation propagation**: stopping/switching/closing the page aborts the engine request so old work no longer holds the inference lock
14
+ - Engine readiness polling reduced from 3 s to 0.5 s; startup wait raised from 90 s to 120 s
15
+ - Added `src/wav-stream.ts` (unknown-length WAV header, float32→16-bit PCM) with unit tests
16
+ - Fixed mode switching so the voice list is fetched for the requested provider (switching to Edge could previously prefill local voice names)
17
+
18
+ ## [5.0.1] - 2026-10-29
19
+
20
+ ### Voice market submission guide
21
+ - 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
22
+ - README / README_EN now show a Voice Market badge and a submission-guide link at the top; the feature list links to the guide
23
+ - npm package now includes `docs/VOICE_MARKET.md`
24
+ - Documentation only; no runtime code changes
25
+
5
26
  ## [5.0.0] - 2026-10-26
6
27
 
7
28
  ### Adapted to DSH 0.2.1-rc.2 (breaking)
package/README.md CHANGED
@@ -7,6 +7,9 @@
7
7
  ![Downloads](https://img.shields.io/npm/dt/dsh-gsv-tts)
8
8
  ![License](https://img.shields.io/npm/l/dsh-gsv-tts)
9
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/)
10
+ [![Voice Market](https://img.shields.io/badge/%E9%9F%B3%E8%89%B2%E5%B8%82%E5%9C%BA-Voice%20Market-10b981?style=flat-square)](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
 
@@ -14,14 +17,15 @@ English README: [README_EN.md](README_EN.md) · 变更记录: [CHANGELOG.md](CHA
14
17
 
15
18
  ## ✨ 功能亮点
16
19
 
17
- - 🌐 **云端快速体验(Edge)**:**零配置、装上即用**,无需 Python / 模型 / 引擎;20+ 种免费自然语言音色(晓晓、云希、Aria 等),联网即用,< 1 秒出声
20
+ - 🌐 **云端快速体验(Edge)**:**零配置、装上即用**,无需 Python / 模型 / 引擎;20+ 种免费自然语言音色(晓晓、云希、Aria 等),联网即用,出声较快
18
21
  - 🖥️ **本地专业(GSV)**:按参考音频**克隆目标音色**、**完全离线**;由云端简单模式一键升级引导而来
19
- - 🔊 **一键朗读**:每条助手消息旁的 🔊 按钮直接朗读(自动排除思考内容);长回复**按句分段渐进播放**,带暂停/继续/停止与进度显示,正在朗读的消息会高亮
22
+ - 🔊 **一键朗读**:每条助手消息旁的 🔊 按钮直接朗读(自动排除思考内容);长回复**流式播放**(首块到达即出声,不再等整段合成完),带暂停/继续/停止与进度显示,正在朗读的消息会高亮
23
+ - ⚡ **首音更快**:可选**常驻模式(性能优先)**,插件加载后自动启动并预热默认音色;朗读走**流式 WAV**,长回复首音明显更快。默认**节能模式(资源优先)**,不后台占资源(与旧版一致)
20
24
  - 🔁 **自动朗读**:开启后自动朗读助手回复;新回复默认打断当前朗读(barge-in),可在设置中关闭
21
25
  - 🔄 **模式切换**:设置面板一键在"快速体验 / 本地专业"间切换,音色与状态实时跟随
22
26
  - 🎛️ **声音设置面板**:可视化配置,**保存即热生效**(无需重启);每条音色可"试听",或"全部试听"循环对比
23
- - 🎪 **音色市场**:从内置/自定义远端清单**一键下载并注入音色**,试听后安装、只读托管;内置可信源免确认,远端源二次确认
24
- - 🚀 **引擎一键启停 / 一键安装**:本地 GSV 引擎启停(模型加载约 15~90 秒)与自动安装,均由设置面板/工具完成
27
+ - 🎪 **音色市场**:从内置/自定义远端清单**一键下载并注入音色**,试听后安装、只读托管;内置可信源免确认,远端源二次确认;欢迎[投稿](docs/VOICE_MARKET.md)分享你喜欢的音色
28
+ - 🚀 **引擎一键启停 / 一键安装**:启动方式可选**常驻模式(性能优先)**或**节能模式(资源优先,默认)**;也支持设置面板手动启停,模型加载约 15~90 秒
25
29
  - 🔗 **同源音频短链接**:合成音频落盘并同源提供,不再撑爆模型上下文
26
30
 
27
31
  ---
@@ -42,7 +46,7 @@ English README: [README_EN.md](README_EN.md) · 变更记录: [CHANGELOG.md](CHA
42
46
  1. 安装插件并重启 DSH(见「📦 安装」)
43
47
  2. 打开 设置 → 声音设置 → **TTS 模式**选 **快速体验(Edge)**
44
48
  3. "音色"下拉选一个云端音色(晓晓 / 云希 / Aria…)
45
- 4. 点任意助手消息旁的 🔊 —— **立即出声,< 1 秒**
49
+ 4. 点任意助手消息旁的 🔊 —— **出声较快**
46
50
 
47
51
  > 无需安装 Python、无需模型、无需启动引擎。仅需联网。云端音色标注 🌐,为您提供免配置即听的入口。
48
52
 
@@ -51,7 +55,7 @@ English README: [README_EN.md](README_EN.md) · 变更记录: [CHANGELOG.md](CHA
51
55
  1. 安装插件并重启 DSH(见「📦 安装」)
52
56
  2. 打开 设置 → 声音设置 → **TTS 模式**选 **本地专业(GSV)**
53
57
  3. **安装引擎**:让 agent 调用 `tts_setup_engine`,或见「🔧 安装 GSV-TTS-Lite 引擎」
54
- 4. **启动引擎**:打开"启动引擎"开关,等待状态变为"运行中"
58
+ 4. **选择引擎启动方式**:默认**节能模式(资源优先)**,不后台启动、首次出声较慢(需要先启动引擎,与旧版一致);切到**常驻模式(性能优先)**会自动启动并预热,首次出声较快。
55
59
  5. **添加音色**:在"音色预设"添加,或从「🎪 音色市场」一键下载,或克隆
56
60
  6. 点任意助手消息旁的 🔊,或让 agent 调用 `tts_speak`
57
61
 
@@ -201,6 +205,7 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
201
205
  |------|------|--------|
202
206
  | TTS 模式 | 快速体验(Edge 云端,免安装)/ 本地专业(GSV,离线/克隆) | 老用户 `gsv` / 新装 `edge` |
203
207
  | 引擎开关 | 启动/停止 GSV-TTS-Lite 引擎进程 | 关 |
208
+ | `engineMode` | 引擎启动方式:`always` 常驻模式(性能优先,自动启动+预热)/ `eco` 节能模式(资源优先,不后台启动,与旧版一致) | `eco` |
204
209
  | `apiUrl` | 引擎 API 地址 | `http://localhost:9880` |
205
210
  | `defaultVoice` | 默认音色(gsv=预设名 / edge=云端音色 id,留空用第一个) | 空 |
206
211
  | `timeout` | 请求超时(毫秒) | `30000` |
@@ -213,6 +218,15 @@ dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
213
218
  | `quotaDaily` | 云端简单模式每日配额(`null`=不限量,仅引导用) | `null` |
214
219
  | `voices` | 音色预设列表 | 空 |
215
220
 
221
+ ### 引擎启动方式怎么选
222
+
223
+ | 模式 | 首次出声 | 空闲时占用 | 适合 |
224
+ |---|---|---|---|
225
+ | **节能模式(资源优先,默认)** | 较慢(需先启动引擎) | 不占显存/内存 | 偶尔朗读、玩游戏、笔记本省电;与旧版行为一致 |
226
+ | **常驻模式(性能优先)** | 较快 | 约 0.9GB 显存 + 0.5GB 内存 | 经常朗读、桌面/插电使用 |
227
+
228
+ > 常驻模式会在插件加载后自动启动引擎并预热默认音色;节能模式不会自动启动,需要手动打开引擎开关(或由你调用 `tts_setup_engine` 后启动)。
229
+
216
230
  配置保存在当前 profile 的配置层(`~/.dsh/profiles/<profile>/cordis.patch.yml` 的 `dsh-gsv-tts:` 条目)。DSH 0.2 起这些字段是 **volatile 配置**:设置面板保存后宿主就地更新配置引用,插件无需重载即可读到新值。
217
231
 
218
232
  ## 🧰 工具列表
package/README_EN.md CHANGED
@@ -7,6 +7,9 @@
7
7
  ![Downloads](https://img.shields.io/npm/dt/dsh-gsv-tts)
8
8
  ![License](https://img.shields.io/npm/l/dsh-gsv-tts)
9
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/)
10
+ [![Voice Market](https://img.shields.io/badge/Voice%20Market-dsh--gsv-10b981?style=flat-square)](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
 
@@ -14,14 +17,15 @@
14
17
 
15
18
  ## ✨ Features
16
19
 
17
- - 🌐 **Cloud Quick Mode (Edge)**: **zero configuration, ready to use** — no Python / models / engines needed; 20+ free natural voices (Xiaoxiao, Yunxi, Aria, etc.), online and < 1 s to first audio
20
+ - 🌐 **Cloud Quick Mode (Edge)**: **zero configuration, ready to use** — no Python / models / engines needed; 20+ free natural voices (Xiaoxiao, Yunxi, Aria, etc.), online and fast to first audio
18
21
  - 🖥️ **Local Pro Mode (GSV)**: **clone a target voice from a reference audio**, **fully offline**; guided one-step upgrade from Cloud Quick Mode
19
- - 🔊 **One-click read-aloud**: a 🔊 button next to every assistant message (reasoning content excluded); long replies are **split into sentence segments and played progressively**, with Pause/Resume/Stop controls, a progress readout, and a highlight on the message being read
22
+ - 🔊 **One-click read-aloud**: a 🔊 button next to every assistant message (reasoning content excluded); long replies are **streamed** (first chunk starts playback; no need to wait for the whole reply), with Pause/Resume/Stop controls, a progress readout, and a highlight on the message being read
23
+ - ⚡ **Faster first audio**: **Always-on mode (performance)** starts and pre-warms the engine with the plugin; read-aloud uses a **streaming WAV**, so first audio on long replies is much faster. The default **Eco mode (resources first)** does not run in the background, same as before
20
24
  - 🔁 **Auto-read**: automatically reads assistant replies; new replies interrupt the current read by default (barge-in), toggleable in settings
21
25
  - 🔄 **Mode switching**: one click in the settings panel between "Quick / Local Pro"; voices and status follow live
22
26
  - 🎛️ **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
24
- - 🚀 **One-click engine start/stop & setup**: local GSV engine control (model loading ~15–90 s) and auto-install, all from the settings panel / tools
27
+ - 🎪 **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)
28
+ - 🚀 **One-click engine start/stop & setup**: choose **Always-on (performance)** or **Eco (resources first, default)**; manual control and auto-install remain available, model loading ~15–90 s
25
29
  - 🔗 **Same-origin audio short links**: synthesized audio is saved and served same-origin — no more giant data URLs in the model context
26
30
 
27
31
  ---
@@ -42,7 +46,7 @@
42
46
  1. Install the plugin and restart DSH (see "📦 Installation")
43
47
  2. Open Settings → Voice Settings → **TTS Mode** → select **Quick (Edge)**
44
48
  3. Pick a cloud voice from the "Voice" dropdown (Xiaoxiao / Yunxi / Aria…)
45
- 4. Click the 🔊 next to any assistant message — **audio plays immediately, < 1 s**
49
+ 4. Click the 🔊 next to any assistant message — **audio starts quickly**
46
50
 
47
51
  > No Python, no models, no engine to start. Only a network connection is required. Cloud voices are marked 🌐, giving you a zero-config path to listening right away.
48
52
 
@@ -51,7 +55,7 @@
51
55
  1. Install the plugin and restart DSH (see "📦 Installation")
52
56
  2. Open Settings → Voice Settings → **TTS Mode** → select **Local Pro (GSV)**
53
57
  3. **Install the engine**: have the agent call `tts_setup_engine`, or see "🔧 Installing the GSV-TTS-Lite Engine"
54
- 4. **Start the engine**: toggle "Start engine" on and wait until it shows "Running"
58
+ 4. **Choose engine startup**: the default **Eco mode (resources first)** does not start in the background; turn the engine on manually first (first audio is slower) or switch to **Always-on (performance)** to auto-start and pre-warm (first audio is faster)
55
59
  5. **Add a voice**: add one under "Voice presets", or one-click download from the "🎪 Voice Market", or clone one
56
60
  6. Click the 🔊 next to any assistant message, or have the agent call `tts_speak`
57
61
 
@@ -201,6 +205,7 @@ Download and inject voices from the Voice Market in one click — no need to fil
201
205
  |-------|-------------|---------|
202
206
  | TTS Mode | Quick (Edge cloud, zero setup) / Local Pro (GSV, offline & cloning) | existing users `gsv` / fresh installs `edge` |
203
207
  | Engine switch | Start/stop the GSV-TTS-Lite engine process | Off |
208
+ | `engineMode` | Engine startup: `always` = Always-on (performance, auto-start + pre-warm) / `eco` = Eco (resources first, no background start, same as before) | `eco` |
204
209
  | `apiUrl` | Engine API URL | `http://localhost:9880` |
205
210
  | `defaultVoice` | Default voice (gsv=preset name / edge=cloud voice id; empty = first) | empty |
206
211
  | `timeout` | Request timeout (ms) | `30000` |
@@ -213,6 +218,15 @@ Download and inject voices from the Voice Market in one click — no need to fil
213
218
  | `quotaDaily` | Daily quota for cloud simple mode (`null` = unlimited; guidance only) | `null` |
214
219
  | `voices` | Voice preset list | empty |
215
220
 
221
+ ### Choosing an engine startup mode
222
+
223
+ | Mode | First audio | Idle cost | Best for |
224
+ |---|---|---|---|
225
+ | **Eco (resources first, default)** | Slower (start the engine first) | No VRAM/RAM held | Occasional reading, gaming, battery; same as before |
226
+ | **Always-on (performance)** | Faster | ~0.9 GB VRAM + 0.5 GB RAM | Frequent reading, desktop/plugged in |
227
+
228
+ > Always-on starts and pre-warms the engine when the plugin loads. Eco never auto-starts; turn the engine on in Voice Settings (or start it after `tts_setup_engine`).
229
+
216
230
  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.
217
231
 
218
232
  ## 🧰 Tools
@@ -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)