From ad74d19c6ba0178d8b0fa3bdcab27737d5f78c40 Mon Sep 17 00:00:00 2001 From: Rupesh Date: Sun, 1 Mar 2026 13:19:42 -0800 Subject: [PATCH] Remove resampling warning log for consistency with rest of codebase --- src/pipecat/audio/turn/smart_turn/local_smart_turn_v3.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/pipecat/audio/turn/smart_turn/local_smart_turn_v3.py b/src/pipecat/audio/turn/smart_turn/local_smart_turn_v3.py index ffe714641..a8cc249fd 100644 --- a/src/pipecat/audio/turn/smart_turn/local_smart_turn_v3.py +++ b/src/pipecat/audio/turn/smart_turn/local_smart_turn_v3.py @@ -46,7 +46,6 @@ class LocalSmartTurnAnalyzerV3(BaseSmartTurn): super().__init__(**kwargs) self._log_data = env_truthy("PIPECAT_SMART_TURN_LOG_DATA", default=False) - self._resample_warned = False if not smart_turn_model_path: # Load bundled model @@ -137,13 +136,6 @@ class LocalSmartTurnAnalyzerV3(BaseSmartTurn): if actual_rate == _MODEL_SAMPLE_RATE: return audio_array - if not self._resample_warned: - logger.warning( - f"Smart Turn v3 model expects {_MODEL_SAMPLE_RATE}Hz audio but received " - f"{actual_rate}Hz. Audio will be resampled automatically." - ) - self._resample_warned = True - return soxr.resample(audio_array, actual_rate, _MODEL_SAMPLE_RATE, quality="VHQ") def _predict_endpoint(self, audio_array: np.ndarray) -> Dict[str, Any]: