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
This commit is contained in:
Abhishek
2025-08-16 16:25:14 +05:30
committed by GitHub
parent 8fa44863fb
commit 8bbdc7c8d1

View File

@@ -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()