Skip to content

fix: 修复 STT 识别结果因任务取消被静默丢弃的问题#64

Merged
ChangingSelf merged 1 commit into
Mai-with-u:devfrom
tcmofashi:fix/stt-result-loss
Apr 15, 2026
Merged

fix: 修复 STT 识别结果因任务取消被静默丢弃的问题#64
ChangingSelf merged 1 commit into
Mai-with-u:devfrom
tcmofashi:fix/stt-result-loss

Conversation

@ClaudiaGardner
Copy link
Copy Markdown
Contributor

防止语音识别完成后接收器任务被取消导致最终结果丢失:

  • 用 send_final_result() + asyncio.shield() 保护发送流程
  • 接收器超时从 1s 增加到 5s,确保最终结果能发送
  • break 改为 return,避免多余逻辑执行

防止语音识别完成后接收器任务被取消导致最终结果丢失:
- 用 send_final_result() + asyncio.shield() 保护发送流程
- 接收器超时从 1s 增加到 5s,确保最终结果能发送
- break 改为 return,避免多余逻辑执行

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ChangingSelf ChangingSelf merged commit e1669c8 into Mai-with-u:dev Apr 15, 2026
1 check passed
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.

2 participants