From 2ce203aeb89594c653a978b75ab8a124664d6905 Mon Sep 17 00:00:00 2001 From: filipi87 Date: Fri, 24 Apr 2026 13:08:32 -0300 Subject: [PATCH] Renaming the method to _maybe_reconnect_on_user_stopped_speaking. --- src/pipecat/services/stt_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pipecat/services/stt_service.py b/src/pipecat/services/stt_service.py index 5c583edcd..b72547e1a 100644 --- a/src/pipecat/services/stt_service.py +++ b/src/pipecat/services/stt_service.py @@ -408,7 +408,7 @@ class STTService(AIService): await self._handle_vad_user_stopped_speaking(frame) await self.push_frame(frame, direction) elif isinstance(frame, UserStoppedSpeakingFrame): - await self._maybe_reconnect() + await self._maybe_reconnect_on_user_stopped_speaking() await self.push_frame(frame, direction) elif isinstance(frame, STTUpdateSettingsFrame): if frame.service is not None and frame.service is not self: @@ -508,8 +508,8 @@ class STTService(AIService): self._finalize_pending = False self._last_transcript_time = 0 - async def _maybe_reconnect(self): - """Check if reconnection is needed after user stops speaking. + async def _maybe_reconnect_on_user_stopped_speaking(self): + """Check if reconnection is needed after the user stops speaking. Called when the user's full turn has ended and the transcription has been received. Re-enables reconnection and triggers any deferred reconnect that