diff --git a/CHANGELOG.md b/CHANGELOG.md index bf9ec4839..af2420c54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to **Pipecat** will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [0.0.47] - 2024-10-22 ### Added @@ -23,6 +23,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixed an issue that would cause an import error when importing + `SileroVADAnalyzer` from the old package `pipecat.vad.silero`. + - Fixed `enable_usage_metrics` to control LLM/TTS usage metrics separately from `enable_metrics`. diff --git a/src/pipecat/transports/services/daily.py b/src/pipecat/transports/services/daily.py index 8c9095c65..5ddd126d6 100644 --- a/src/pipecat/transports/services/daily.py +++ b/src/pipecat/transports/services/daily.py @@ -108,7 +108,9 @@ def check_deprecated_fields(cls, values): with warnings.catch_warnings(): warnings.simplefilter("always") if "tier" in values: - warnings.warn("'tier' is deprecated, use 'model' instead", DeprecationWarning) + warnings.warn( + "Field 'tier' is deprecated, use 'model' instead.", DeprecationWarning + ) return values diff --git a/src/pipecat/vad/silero.py b/src/pipecat/vad/silero.py index ebc32c03d..7ec938dbd 100644 --- a/src/pipecat/vad/silero.py +++ b/src/pipecat/vad/silero.py @@ -4,9 +4,13 @@ # SPDX-License-Identifier: BSD 2-Clause License # -from loguru import logger +import warnings -logger.warning("DEPRECATED: Package `pipecat.vad` is deprecated, use `pipecat.audio.vad` instead.") +with warnings.catch_warnings(): + warnings.simplefilter("always") + warnings.warn( + "Package `pipecat.vad` is deprecated, use `pipecat.audio.vad` instead", DeprecationWarning + ) from ..audio.vad.silero import SileroVADAnalyzer from ..processors.audio.vad.silero import SileroVAD diff --git a/src/pipecat/vad/vad_analyzer.py b/src/pipecat/vad/vad_analyzer.py index f24508826..b29b10ef9 100644 --- a/src/pipecat/vad/vad_analyzer.py +++ b/src/pipecat/vad/vad_analyzer.py @@ -4,8 +4,12 @@ # SPDX-License-Identifier: BSD 2-Clause License # -from loguru import logger +import warnings -logger.warning("DEPRECATED: Package `pipecat.vad` is deprecated, use `pipecat.audio.vad` instead.") +with warnings.catch_warnings(): + warnings.simplefilter("always") + warnings.warn( + "Package `pipecat.vad` is deprecated, use `pipecat.audio.vad` instead", DeprecationWarning + ) from ..audio.vad.vad_analyzer import VADAnalyzer, VADParams, VADState