Open
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.
变更说明
具体内容
1. 启动阶段支持按通道降级
之前无论是音频播放器、系统音频捕获、字幕窗口,还是火山引擎连接,只要其中某一步失败,整个程序都会直接退出。
修改后:
避免“部分依赖缺失时整个程序完全不可用”的情况。
例如:
2. 清理降级场景下的资源释放逻辑
为了支持按通道关闭,补充了对应资源的清理逻辑,避免某个通道关闭后,后续事件循环或停止流程还继续访问已经失效的对象。
3. 新增 Windows 健康检查脚本
增加了
scripts/healthcheck.ps1,用于 Windows 环境下的运行前检查,主要包括:.venv是否存在config.yaml是否存在且可解析如果 FFmpeg 不可用,脚本会给出提示,说明启用
zh_to_en语音输出时运行阶段会进行降级关闭。