In progres TTS
This commit is contained in:
parent
6620c0ac74
commit
88b7077a62
@ -11,8 +11,9 @@ import time
|
||||
from av.audio.frame import AudioFrame
|
||||
from av import VideoFrame
|
||||
from aiortc import MediaStreamTrack
|
||||
from typing import Dict, Optional, Tuple, Any
|
||||
from typing import Awaitable, Callable, Dict, Optional, Tuple, Any, Union
|
||||
from shared.logger import logger
|
||||
from shared.models import ChatMessageModel
|
||||
|
||||
|
||||
# Global registry to store active tracks by session
|
||||
@ -495,6 +496,15 @@ def create_agent_tracks(session_name: str) -> Dict[str, MediaStreamTrack]:
|
||||
return create_minimal_bot_tracks(session_name)
|
||||
|
||||
|
||||
|
||||
async def handle_chat_message(
|
||||
chat_message: ChatMessageModel,
|
||||
send_message_func: Callable[[Union[str, ChatMessageModel]], Awaitable[None]]
|
||||
) -> Optional[str]:
|
||||
"""Handle chat messages."""
|
||||
logger.info(f"Received chat message: {chat_message.message}")
|
||||
return None
|
||||
|
||||
def handle_config_update(lobby_id: str, config_values: Dict[str, Any]) -> bool:
|
||||
"""
|
||||
Handle runtime configuration updates for the minimal bot.
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user