feat(sharedASR): 优化ASR启动策略,支持本地模型预加载,避免连接超时。

This commit is contained in:
caixypromise
2025-12-28 23:13:58 +08:00
parent 1ba556988f
commit c9bf6c501c
12 changed files with 724 additions and 27 deletions
@@ -311,3 +311,4 @@ class UDPProtocol(asyncio.DatagramProtocol):
def error_received(self, exc):
logger.error(f"UDP协议错误: {exc}")
@@ -316,3 +316,4 @@ class MultiProtocolServer:
def is_protocol_enabled(self, protocol: str) -> bool:
"""检查协议是否启用"""
return protocol in self.servers