From 0423acd8a039030afcaf180163491b6e4c0ade7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Thu, 29 Jan 2026 11:43:13 -0800 Subject: [PATCH] STTService: just clear buffer before running run_stt() --- src/pipecat/services/stt_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipecat/services/stt_service.py b/src/pipecat/services/stt_service.py index 44c7af3b4..21422d6ef 100644 --- a/src/pipecat/services/stt_service.py +++ b/src/pipecat/services/stt_service.py @@ -497,11 +497,11 @@ class SegmentedSTTService(STTService): wav.close() content.seek(0) - await self.process_generator(self.run_stt(content.read())) - # Start clean. self._audio_buffer.clear() + await self.process_generator(self.run_stt(content.read())) + async def process_audio_frame(self, frame: AudioRawFrame, direction: FrameDirection): """Process audio frames by buffering them for segmented transcription.