processors(realtime-ai): add support for updating config (model, voice...)

This commit is contained in:
Aleix Conchillo Flaqué
2024-07-18 17:17:03 -07:00
parent 3e738642a7
commit 29a8530221
11 changed files with 83 additions and 5 deletions

View File

@@ -345,3 +345,17 @@ class UserImageRequestFrame(ControlFrame):
def __str__(self):
return f"{self.name}, user: {self.user_id}"
@dataclass
class LLMModelUpdateFrame(ControlFrame):
"""A control frame containing a request to update to a new LLM model.
"""
model: str
@dataclass
class TTSVoiceUpdateFrame(ControlFrame):
"""A control frame containing a request to update to a new TTS voice.
"""
voice: str