xiaozhi-esp32-server/main/xiaozhi-server/core/providers/tts
Brad Shannon 3c59c46551 fix(core): bound blocking future.result() calls so a hung dependency can't freeze the connection
Two cross-thread future.result() calls had no timeout, so a stalled
dependency blocked the thread indefinitely with no recovery:

- connection.py: a hung memory backend froze the chat thread during
  query_memory().
- tts/base.py: a stalled WebSocket send froze the audio priority thread in
  sendAudioMessage().

Add a 30s timeout and explicit TimeoutError handling at both sites. On
timeout the failure is logged and the loop proceeds (memory falls back to
None; the audio frame is skipped) instead of deadlocking. The tool-call
fan-in already uses tool_call_timeout, so it is left unchanged.
2026-06-18 11:01:04 -04:00
..
dto 优化双流式TTS时的声音 2025-05-27 18:51:08 +08:00
alibl_stream.py fix: 修复流式情况下替换词失败 2026-05-07 10:20:10 +08:00
aliyun.py 部分TTS参数调整 2026-02-27 16:37:31 +08:00
aliyun_stream.py fix: 修复流式情况下替换词失败 2026-05-07 10:20:10 +08:00
base.py fix(core): bound blocking future.result() calls so a hung dependency can't freeze the connection 2026-06-18 11:01:04 -04:00
cozecn.py 部分TTS参数调整 2026-02-27 16:37:31 +08:00
custom.py 部分TTS参数调整 2026-02-27 16:37:31 +08:00
default.py update:引导测试页面启动 2025-08-16 14:36:23 +08:00
doubao.py update: 增加智能体独立音频设置 2026-02-27 11:17:08 +08:00
edge.py update: 更改to_tts保存临时文件判断 2025-06-04 16:46:49 +08:00
fishspeech.py 部分TTS参数调整 2026-02-27 16:37:31 +08:00
gpt_sovits_v2.py feat: 新增音频路径與音频文本欄位,提供給本地tts選取音色 2025-06-09 19:18:58 +08:00
gpt_sovits_v3.py feat: 新增音频路径與音频文本欄位,提供給本地tts選取音色 2025-06-09 19:18:58 +08:00
huoshan_double_stream.py fix: 修复流式情况下替换词失败 2026-05-07 10:20:10 +08:00
index_stream.py Revert "fix: 修复流式TTS替换词显示/上报问题" 2026-04-30 15:57:03 +08:00
minimax_httpstream.py Revert "fix: 修复流式TTS替换词显示/上报问题" 2026-04-30 15:57:03 +08:00
openai.py 部分TTS参数调整 2026-02-27 16:37:31 +08:00
paddle_speech.py update: 增加智能体独立音频设置 2026-02-27 11:17:08 +08:00
siliconflow.py 部分TTS参数调整 2026-02-27 16:37:31 +08:00
tencent.py 部分TTS参数调整 2026-02-27 16:37:31 +08:00
xunfei_stream.py fix: 修复流式情况下替换词失败 2026-05-07 10:20:10 +08:00