Skip to content

修复内置语音引擎首次启动时的模型下载 - #866

Draft
Plastic-time wants to merge 3 commits into
ilynthn:mainfrom
Plastic-time:rrfz/prepare-first-run-voices
Draft

Plastic-time wants to merge 3 commits into
ilynthn:mainfrom
Plastic-time:rrfz/prepare-first-run-voices

Conversation

@Plastic-time

Copy link
Copy Markdown
Contributor

依赖 #861。

问题

内置语音引擎首次启动时自行下载默认模型。下载遇到限流或尚未完成时,MeguLit 可能先报启动超时。

改动

空语音配置先用同一个下载器预备并校验两个默认模型。等待有统一的时间上限,失败仍交给原引擎处理。保留已有模型,取消后停止本次启动。

Windows 上使用真实内置引擎 1.2.0,从空语音目录启动。两个模型分别只申请一次链接,引擎启动后提供 2 个话者和 10 种声音样式,未再次请求默认模型。首启回归用例由 2/10 通过变为 10/10。node --test 跑过首启、语音模型和共用下载器的 29 项用例。

Build.ps1 -TestsOnly 共 3,481 项,3,289 通过、162 跳过。30 项失败与同机主线一致。

Refs #777

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant