diff --git a/src/pipecat/services/gemini_multimodal_live/events.py b/src/pipecat/services/gemini_multimodal_live/events.py index 0d5bc802f..36541aa30 100644 --- a/src/pipecat/services/gemini_multimodal_live/events.py +++ b/src/pipecat/services/gemini_multimodal_live/events.py @@ -105,6 +105,7 @@ class InlineData(BaseModel): class Part(BaseModel): inlineData: Optional[InlineData] = None + text: Optional[str] = None class ModelTurn(BaseModel): diff --git a/src/pipecat/services/gemini_multimodal_live/gemini.py b/src/pipecat/services/gemini_multimodal_live/gemini.py index dd4375486..dea63b3c8 100644 --- a/src/pipecat/services/gemini_multimodal_live/gemini.py +++ b/src/pipecat/services/gemini_multimodal_live/gemini.py @@ -604,6 +604,11 @@ class GeminiMultimodalLiveLLMService(LLMService): part = evt.serverContent.modelTurn.parts[0] if not part: return + + text = part.text + if text: + await self.push_frame(TextFrame(text=text)) + inline_data = part.inlineData if not inline_data: return