Skip to content

Commit

Permalink
Merge pull request #641 from pipecat-ai/aleix/prepare-0.0.47
Browse files Browse the repository at this point in the history
prepare 0.0.47
  • Loading branch information
aconchillo authored Oct 22, 2024
2 parents 61d73f8 + 7c43249 commit a46eaa8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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`.

Expand Down
4 changes: 3 additions & 1 deletion src/pipecat/transports/services/daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
8 changes: 6 additions & 2 deletions src/pipecat/vad/silero.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 6 additions & 2 deletions src/pipecat/vad/vad_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a46eaa8

Please sign in to comment.