processors(realtime-ai): add support making TTS to speak

This commit is contained in:
Aleix Conchillo Flaqué
2024-07-19 14:11:58 -07:00
parent b85dd7283a
commit b0b1475563
3 changed files with 39 additions and 9 deletions

View File

@@ -177,6 +177,15 @@ class LLMMessagesUpdateFrame(DataFrame):
messages: List[dict]
@dataclass
class TTSSpeakFrame(DataFrame):
"""A frame that contains a text that should be spoken by the TTS in the
pipeline (if any).
"""
text: str
@dataclass
class TransportMessageFrame(DataFrame):
message: Any