mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 00:53:54 +08:00
update:python部分"动态更新配置"的优化
This commit is contained in:
@@ -11,6 +11,7 @@ class WebSocketServer:
|
||||
def __init__(self, config: dict):
|
||||
self.config = config
|
||||
self.logger = setup_logging()
|
||||
self.config_lock = asyncio.Lock()
|
||||
modules = initialize_modules(
|
||||
self.logger, self.config, True, True, True, True, True, True
|
||||
)
|
||||
@@ -43,6 +44,7 @@ class WebSocketServer:
|
||||
self._tts,
|
||||
self._memory,
|
||||
self._intent,
|
||||
self # 传入当前 WebSocketServer 实例
|
||||
)
|
||||
self.active_connections.add(handler)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user