From db7b60cfe9dfc021298df9d576664ac1623540f4 Mon Sep 17 00:00:00 2001 From: Matej Marinko Date: Thu, 29 May 2025 13:24:53 +0200 Subject: [PATCH] Auto finalize fix --- src/pipecat/services/soniox/stt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pipecat/services/soniox/stt.py b/src/pipecat/services/soniox/stt.py index 891179259..fbffd9c19 100644 --- a/src/pipecat/services/soniox/stt.py +++ b/src/pipecat/services/soniox/stt.py @@ -349,6 +349,7 @@ class SonioxSTTService(STTService): if last_token_age_ms > self._auto_finalize_delay_ms: # No new tokens received for a while, finalize the transcription. logger.debug("No pending frames, sending finalize message") + self._last_tokens_received = None await self._websocket.send(FINALIZE_MESSAGE) except websockets.exceptions.ConnectionClosed: # Expected when closing the connection.