From 8bbdc7c8d15d774f3791209cb22089e9c5fad49b Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sat, 16 Aug 2025 16:25:14 +0530 Subject: [PATCH] Only set last_frame_time when handling OutputAudioRawFrame We don't want to set `last_frame_time` on other frames like `HeartBeatFrame`, `LLMGeneratedTextFrame`, `InterruptionFrames` so that we can calculate `diff_time` and compare it against `vad_stop_secs` properly --- src/pipecat/transports/base_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/transports/base_output.py b/src/pipecat/transports/base_output.py index afb5abb0b..53c6ecb38 100644 --- a/src/pipecat/transports/base_output.py +++ b/src/pipecat/transports/base_output.py @@ -642,7 +642,7 @@ class BaseOutputTransport(FrameProcessor): self._transport.reset_watchdog() if isinstance(frame, OutputAudioRawFrame): frame.audio = await self._mixer.mix(frame.audio) - last_frame_time = time.time() + last_frame_time = time.time() yield frame except asyncio.QueueEmpty: self._transport.reset_watchdog()