mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-28 01:53:53 +08:00
feat(sharedASR): 优化ASR启动策略,支持本地模型预加载,避免连接超时。
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user