diff --git a/src/pipecat/frames/frames.py b/src/pipecat/frames/frames.py index 1fe13024a..a6b3e22ae 100644 --- a/src/pipecat/frames/frames.py +++ b/src/pipecat/frames/frames.py @@ -443,6 +443,22 @@ class TTSVoiceUpdateFrame(ControlFrame): voice: str +@dataclass +class TTSLanguageUpdateFrame(ControlFrame): + """A control frame containing a request to update to a new TTS language. + """ + language: Language + + +@dataclass +class TTSLanguageVoicesUpdateFrame(ControlFrame): + """A control frame containing a mapping between a language and the desired + voice for that language. + + """ + voices: Mapping[Language, str] + + @dataclass class FunctionCallInProgressFrame(SystemFrame): """A frame signaling that a function call is in progress.