Remove resampling warning log for consistency with rest of codebase

This commit is contained in:
Rupesh
2026-03-01 13:19:42 -08:00
committed by Marcus
parent 5e8d722bf2
commit ad74d19c6b

View File

@@ -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]: