xiaozhi-esp32-server/main/xiaozhi-server/core/handle/textHandle.py
Alireza Jahanshahlou 6aedb3c3f5 handle
2025-10-17 01:02:26 +03:30

14 lines
476 B
Python

from core.handle.textMessageHandlerRegistry import TextMessageHandlerRegistry
from core.handle.textMessageProcessor import TextMessageProcessor
TAG = __name__
# Global Processor Registry
message_registry = TextMessageHandlerRegistry()
# Create a global message handler instance
message_processor = TextMessageProcessor(message_registry)
async def handleTextMessage(conn, message):
"""Process text messages"""
await message_processor.process_message(conn, message)