Skip to content

Commit

Permalink
Merge pull request #875 from pipecat-ai/aleix/update-dependencies
Browse files Browse the repository at this point in the history
update dependencies
  • Loading branch information
aconchillo authored Dec 17, 2024
2 parents 16948b2 + da15c83 commit 79eb29d
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 18 deletions.
14 changes: 7 additions & 7 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
build~=1.2.1
grpcio-tools~=1.65.4
build~=1.2.2
grpcio-tools~=1.68.1
pip-tools~=7.4.1
pyright~=1.1.376
pytest~=8.3.2
ruff~=0.6.7
setuptools~=72.2.0
pyright~=1.1.390
pytest~=8.3.4
ruff~=0.8.3
setuptools~=75.6.0
setuptools_scm~=8.1.0
python-dotenv~=1.0.1
python-dotenv~=1.0.1
15 changes: 8 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ classifiers = [
]
dependencies = [
"aiohttp~=3.11.10",
"loguru~=0.7.2",
"audioop-lts~=0.2.1; python_version>='3.13'",
"loguru~=0.7.3",
"Markdown~=3.7",
"numpy~=1.26.4",
"Pillow~=10.4.0",
"numpy~=2.1.3",
"numba~=0.61.0rc1",
"Pillow~=11.0.0",
"protobuf~=5.29.1",
"pydantic~=2.8.2",
"pydantic~=2.10.3",
"pyloudnorm~=0.1.1",
"resampy~=0.4.3",
"tenacity~=9.0.0"
Expand All @@ -46,7 +48,6 @@ cartesia = [ "cartesia~=1.0.13", "websockets~=13.1" ]
daily = [ "daily-python~=0.13.0" ]
deepgram = [ "deepgram-sdk~=3.7.7" ]
elevenlabs = [ "websockets~=13.1" ]
examples = [ "python-dotenv~=1.0.1", "flask~=3.0.3", "flask_cors~=4.0.1" ]
fal = [ "fal-client~=0.4.1" ]
gladia = [ "websockets~=13.1" ]
google = [ "google-generativeai~=0.8.3", "google-cloud-texttospeech~=2.21.1" ]
Expand All @@ -63,8 +64,8 @@ moondream = [ "einops~=0.8.0", "timm~=1.0.8", "transformers~=4.44.0" ]
nim = [ "openai~=1.57.2" ]
noisereduce = [ "noisereduce~=3.0.3" ]
openai = [ "openai~=1.57.2", "websockets~=13.1", "python-deepcompare~=1.0.1" ]
openpipe = [ "openpipe~=4.38.0" ]
playht = [ "pyht~=0.1.8", "websockets~=13.1" ]
openpipe = [ "openpipe~=4.40.0" ]
playht = [ "pyht~=0.1.9", "websockets~=13.1" ]
riva = [ "nvidia-riva-client~=2.17.0" ]
silero = [ "onnxruntime~=1.20.1" ]
simli = [ "simli-ai~=0.1.7"]
Expand Down
6 changes: 6 additions & 0 deletions src/pipecat/processors/metrics/frame_processor_metrics.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#

import time

from pipecat.frames.frames import MetricsFrame
Expand Down
18 changes: 14 additions & 4 deletions src/pipecat/processors/metrics/sentry.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#

import time
from loguru import logger

Expand Down Expand Up @@ -29,8 +35,10 @@ async def start_ttfb_metrics(self, report_only_initial_ttfb):
description=f"TTFB for {self._processor_name()}",
start_timestamp=self._start_ttfb_time,
)
logger.debug(f"Sentry Span ID: {self._ttfb_metrics_span.span_id} Description: {
self._ttfb_metrics_span.description} started.")
logger.debug(
f"Sentry Span ID: {self._ttfb_metrics_span.span_id} Description: {
self._ttfb_metrics_span.description} started."
)
self._should_report_ttfb = not report_only_initial_ttfb

async def stop_ttfb_metrics(self):
Expand All @@ -46,8 +54,10 @@ async def start_processing_metrics(self):
description=f"Processing for {self._processor_name()}",
start_timestamp=self._start_processing_time,
)
logger.debug(f"Sentry Span ID: {self._processing_metrics_span.span_id} Description: {
self._processing_metrics_span.description} started.")
logger.debug(
f"Sentry Span ID: {self._processing_metrics_span.span_id} Description: {
self._processing_metrics_span.description} started."
)

async def stop_processing_metrics(self):
stop_time = time.time()
Expand Down

0 comments on commit 79eb29d

Please sign in to comment.