收录非语言原音回填与 audio_mode 契约 - #121
Merged
Merged
Conversation
- 强制新翻译产物显式声明 tts 或 original,并兼容旧产物 - 为语气词和非语言声音回填原音,修正延迟片段时间线 - 使用私有安全写入并补齐音频、字幕、权限与管线回归测试 Co-authored-by: lyk-bit <lyk-bit@users.noreply.github.com>
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.
背景
本 PR 基于当前
main重新实现原始音频回填链路,只摘取 PR #112 中与音频时间线、翻译提示词、TranslationItem/audio_mode、原音片段、安全写入和字幕契约相关的内容。感谢 @lyk-bit 在 #112 中提供初始实现和思路
参考的原始提交:
改动
tts或original;tts必须有非空译文,非法或缺失模式触发重试并最终显式失败。audio_mode,旧产物继续按dst/zh内容推断,上传字幕显式标记为tts。回归验证
范围说明
本 PR 未引入
gpu_memory、模型显存释放、Demucs 分块、日译中、Windows 打包等 #112 中的其他改动。