From 70a85cd192aa7d33e0554d043630db445809a245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6kmen=20G=C3=B6rgen?= Date: Tue, 20 Jan 2026 14:43:57 +0100 Subject: [PATCH] use path for keeping the consistency between the parameters. --- src/pipecat/audio/filters/aic_filter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipecat/audio/filters/aic_filter.py b/src/pipecat/audio/filters/aic_filter.py index 94811479c..cd0841d40 100644 --- a/src/pipecat/audio/filters/aic_filter.py +++ b/src/pipecat/audio/filters/aic_filter.py @@ -48,7 +48,7 @@ class AICFilter(BaseAudioFilter): *, license_key: str, model_id: Optional[str] = None, - model_path: Optional[str] = None, + model_path: Optional[Path] = None, model_download_dir: Optional[Path] = None, ) -> None: """Initialize the AIC filter. @@ -168,7 +168,7 @@ class AICFilter(BaseAudioFilter): # Load or download model if self._model_path: logger.debug(f"Loading AIC model from: {self._model_path}") - self._model = Model.from_file(self._model_path) + self._model = Model.from_file(str(self._model_path)) else: logger.debug(f"Downloading AIC model: {self._model_id}") self._model_download_dir.mkdir(parents=True, exist_ok=True)