fix: 修复停止录音后未等待豆包返回最终结果,导致历史记录和自动粘贴失效

This commit is contained in:
2026-03-01 04:21:57 +08:00
parent e1c1b2d9b2
commit 75abe72bf6
2 changed files with 20 additions and 8 deletions

View File

@@ -120,9 +120,7 @@ func main() {
}
}
cleanup := func() {
// Send last empty frame to signal end
_ = client.SendAudio(nil, true)
client.Close()
client.Finish()
}
return sendAudio, cleanup, nil
}