Merge branch 'main' into update-tts-voice-data

This commit is contained in:
Sakura-RanChen
2026-02-27 11:21:18 +08:00
27 changed files with 2447 additions and 115 deletions
+8
View File
@@ -1118,6 +1118,14 @@ class ConnectionHandler:
async def close(self, ws=None):
"""资源清理方法"""
try:
# 清理 VAD 连接资源
if (
hasattr(self, "vad")
and self.vad
and hasattr(self.vad, "release_conn_resources")
):
self.vad.release_conn_resources(self)
# 清理音频缓冲区
if hasattr(self, "audio_buffer"):
self.audio_buffer.clear()