diff --git a/src/pipecat/turns/user_stop/turn_analyzer_user_turn_stop_strategy.py b/src/pipecat/turns/user_stop/turn_analyzer_user_turn_stop_strategy.py index 1bb266380..109359c2a 100644 --- a/src/pipecat/turns/user_stop/turn_analyzer_user_turn_stop_strategy.py +++ b/src/pipecat/turns/user_stop/turn_analyzer_user_turn_stop_strategy.py @@ -113,7 +113,8 @@ class TurnAnalyzerUserTurnStopStrategy(BaseUserTurnStopStrategy): audio collected during that confirmation window, so we let the analyzer know when this value has changed. """ - self._turn_analyzer.update_vad_start_secs(frame.vad_params.start_secs) + if frame.vad_params: + self._turn_analyzer.update_vad_start_secs(frame.vad_params.start_secs) async def _handle_input_audio(self, frame: InputAudioRawFrame): """Handle input audio to check if the turn is completed."""