From 8467d87cfca329a3de632d48e2ca105c73c38adc Mon Sep 17 00:00:00 2001 From: Vanessa Pyne Date: Mon, 21 Jul 2025 09:52:32 -0500 Subject: [PATCH] small main-merge fixes - gemini.py --- src/pipecat/services/gemini_multimodal_live/gemini.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pipecat/services/gemini_multimodal_live/gemini.py b/src/pipecat/services/gemini_multimodal_live/gemini.py index b427e752f..5f8747da0 100644 --- a/src/pipecat/services/gemini_multimodal_live/gemini.py +++ b/src/pipecat/services/gemini_multimodal_live/gemini.py @@ -72,7 +72,6 @@ from pipecat.utils.time import time_now_iso8601 from pipecat.utils.tracing.service_decorators import traced_gemini_live, traced_stt from . import events -from .audio_transcriber import AudioTranscriber from .file_api import GeminiFileAPI try: @@ -281,7 +280,6 @@ class GeminiMultimodalLiveContext(OpenAILLMContext): } } ) - else: logger.warning(f"Unsupported content type: {str(part)[:80]}") else: @@ -1201,6 +1199,9 @@ class GeminiMultimodalLiveLLMService(LLMService): self._search_result_buffer = "" self._accumulated_grounding_metadata = None + # Only push the TTSStoppedFrame if the bot is outputting audio + # when text is found, modalities is set to TEXT and no audio + # is produced. if not text: await self.push_frame(TTSStoppedFrame())