mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-28 10:03:54 +08:00
音频会在队列积压等待发送,等待协程结果返回不设置超时时间
This commit is contained in:
@@ -407,7 +407,7 @@ class TTSProviderBase(ABC):
|
|||||||
sendAudioMessage(self.conn, sentence_type, audio_datas, text),
|
sendAudioMessage(self.conn, sentence_type, audio_datas, text),
|
||||||
self.conn.loop,
|
self.conn.loop,
|
||||||
)
|
)
|
||||||
future.result(timeout=self.tts_timeout)
|
future.result()
|
||||||
|
|
||||||
# 记录输出和报告
|
# 记录输出和报告
|
||||||
if self.conn.max_output_size > 0 and text:
|
if self.conn.max_output_size > 0 and text:
|
||||||
|
|||||||
Reference in New Issue
Block a user