dsh-notify-say 0.5.2 → 0.5.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 +12 -2
- package/README.md +12 -2
- package/dsh-notify.ps1 +32 -0
- package/lib/client.js +49 -4
- package/lib/config-schema.js +16 -0
- package/lib/config-store.js +6 -0
- package/lib/index.js +208 -9
- package/package.json +79 -77
- package/test/docs-consistency.test.mjs +230 -0
- package/test/fail-voice.test.mjs +140 -1
- package/test/voice-label.test.mjs +699 -1
- package/tools/notify-config.ps1 +12 -9
package/tools/notify-config.ps1
CHANGED
|
@@ -93,7 +93,7 @@ param(
|
|
|
93
93
|
[switch]$Clear,
|
|
94
94
|
[switch]$ListVoices,
|
|
95
95
|
# ── 语音包管理(按需下载)────────────────────────────────────────────────
|
|
96
|
-
#
|
|
96
|
+
# 完整语音包约 53 MB;核心包只带 2 个音色(1 日语 + 1 中文)。没装语音包时自动回退系统提示音。
|
|
97
97
|
[switch]$ListPacks,
|
|
98
98
|
[string]$PurgeVoice,
|
|
99
99
|
[switch]$InstallHint,
|
|
@@ -338,7 +338,7 @@ function Show-Packs {
|
|
|
338
338
|
Write-Host (" 合计 {0} 个音色 / {1:N2} MB" -f $acc.Count, $totalMB) -ForegroundColor Cyan
|
|
339
339
|
Write-Host ""
|
|
340
340
|
Write-Host " 说明:只装了 done 的音色,在失败时会**在同池内换音色**或回落提示音(不会播错语义)。" -ForegroundColor DarkGray
|
|
341
|
-
Write-Host " 完整语音包约
|
|
341
|
+
Write-Host " 完整语音包约 53 MB;核心包自带 2 个音色(1 日语 + 1 中文)。删掉不用的用 -PurgeVoice <key>。" -ForegroundColor DarkGray
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
# ── 语音包管理:删除某音色 ──────────────────────────────────────────────────
|
|
@@ -377,23 +377,26 @@ function Remove-VoicePack([string]$key) {
|
|
|
377
377
|
function Show-InstallHint {
|
|
378
378
|
Write-Host "=== 如何获得更多语音 ===" -ForegroundColor Cyan
|
|
379
379
|
Write-Host ""
|
|
380
|
-
Write-Host "
|
|
380
|
+
Write-Host " 核心包自带 2 个音色:ずんだもん(日语)+ 温柔女声(中文),约 4 MB。"
|
|
381
|
+
Write-Host " 另有 15 个音色(12 日语 + 3 中文)按需下载,合计约 49 MB,故不随包发布。"
|
|
381
382
|
Write-Host ""
|
|
382
|
-
Write-Host " A)
|
|
383
|
+
Write-Host " A) 在设置页里下载(推荐)" -ForegroundColor Green
|
|
384
|
+
Write-Host " 打开 DSH 设置 → 通知 → 语音包 → 选音色 → 点「下载」。"
|
|
385
|
+
Write-Host " 下载完先校验 SHA-256,与 packs.json 登记的不一致会直接丢弃。"
|
|
386
|
+
Write-Host ""
|
|
387
|
+
Write-Host " B) 自己合成(想用清单外的音色时)" -ForegroundColor Green
|
|
383
388
|
Write-Host " 1. 安装 VOICEVOX(本地免费 TTS 引擎,约 1 GB)"
|
|
384
389
|
Write-Host " 2. 启动引擎(默认 http://127.0.0.1:50021)"
|
|
385
|
-
Write-Host " 3.
|
|
386
|
-
Write-Host " (合成脚本尚未随包发布;音色下载功能开发中)" -ForegroundColor DarkGray
|
|
387
|
-
Write-Host " 临时方案:手动在 VOICEVOX 里合成,把 wav 放进下面的 B) 目录"
|
|
390
|
+
Write-Host " 3. 本次不提供现成合成脚本;手动在 VOICEVOX 里合成,把 wav 放进下面的 C) 目录"
|
|
388
391
|
Write-Host ""
|
|
389
|
-
Write-Host "
|
|
392
|
+
Write-Host " C) 从他人镜像下载(如提供)" -ForegroundColor Green
|
|
390
393
|
Write-Host " 把 wav 放进 <插件根>\sounds\voice-lines\ 及子目录:"
|
|
391
394
|
Write-Host " done -> sounds\voice-lines\<key>~N.wav"
|
|
392
395
|
Write-Host " question -> sounds\voice-lines\question\<key>~N.wav"
|
|
393
396
|
Write-Host " approval -> sounds\voice-lines\approval\<key>~N.wav"
|
|
394
397
|
Write-Host " fail -> sounds\voice-lines\fail\<key>~N.wav"
|
|
395
398
|
Write-Host ""
|
|
396
|
-
Write-Host "
|
|
399
|
+
Write-Host " D) 不装任何语音包(也是完全可用的配置)" -ForegroundColor Green
|
|
397
400
|
Write-Host " 通知 = Windows Toast + 系统提示音。用 -Voice off 可只留 Toast。" -ForegroundColor DarkGray
|
|
398
401
|
Write-Host ""
|
|
399
402
|
Write-Host " 装好后用 -ListPacks 查看,用 -VoiceName <key> 选定音色。" -ForegroundColor Gray
|