feat(tts): 按字幕或目标语言统一选择数字朗读规则(首期) - #463
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
后续优化 #458。原修复依据 Kokoro 音色的中英文属性决定是否加载中文 FST,无法覆盖「英文音色读中文字幕」、纯数字字幕以及 ZipVoice 混合文本等情况。
首期实现
en-GB、zh-Hant等地区/文字标签,不逐行猜测纯数字的语言。范围与兼容性
tinyld@1.3.4;检测分数只用于保守排序,短文本或不确定结果回退,用户可手动覆盖。验证
npm run test:dubbing:217 项通过,以及真实 processor / worker 调用链测试(原生合成边界使用 stub),覆盖持久化、失败重试、局部更新、预览、导出、流水线及检查点续跑。npm run test:voice-clone:193 项通过;加入 CI。npm run test:pipeline、npm run test:recipes、npm run check:i18n通过。npm run build通过(renderer + main)。90%、2026、1,234.56,以及不同语言音色与字幕的组合。