.1502411993651747:c2cbfb8481c1fdab0121fd475b80e1b9_69f70243dc48703ced6d215e.69f70245dc48703ced6d2160.69f702456fe4d85c9f2238b9:Trae CN.T(2026/5/3 16:07:33)#303
Open
lovely90133 wants to merge 3 commits into
Conversation
- 引入 segment_id 生成和状态管理机制 - 添加 frames_lock 和 buffer_lock 保护并发操作 - 实现 _clear_all_buffers 方法清理所有音频缓冲区 - 增加测试用例验证隔离机制和锁保护
在音频转写管道中添加segment_id支持,确保不同段落的转写结果不会混淆 新增测试用例验证segment_id隔离逻辑和过期结果丢弃机制
改进is_same_segment判断逻辑,确保旧格式响应(无segment_id)和不匹配的segment_id转录结果被正确丢弃 同时添加测试用例验证新旧格式响应的处理逻辑
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.
fix(音频转录): 修复旧格式响应和segment_id不匹配时的转录结果处理
改进is_same_segment判断逻辑,确保旧格式响应(无segment_id)和不匹配的segment_id转录结果被正确丢弃
同时添加测试用例验证新旧格式响应的处理逻辑