STTService: just clear buffer before running run_stt()

This commit is contained in:
Aleix Conchillo Flaqué
2026-01-29 11:43:13 -08:00
parent 7eabaaa0ef
commit 0423acd8a0

View File

@@ -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.