add tenacity dependency

This commit is contained in:
joachimchauvet
2024-09-17 22:04:42 +03:00
parent a9390d96a1
commit 2e5b0c1d6b
2 changed files with 3 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import aiohttp
from dotenv import load_dotenv from dotenv import load_dotenv
from livekit import api # pip install livekit-api from livekit import api # pip install livekit-api
from loguru import logger from loguru import logger
from pipecat.frames.frames import TextFrame from pipecat.frames.frames import TextFrame
from pipecat.pipeline.pipeline import Pipeline from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.runner import PipelineRunner
@@ -84,7 +85,7 @@ async def main():
# Register an event handler so we can play the audio when the # Register an event handler so we can play the audio when the
# participant joins. # participant joins.
@transport.event_handler("on_participant_joined") @transport.event_handler("on_first_participant_joined")
async def on_first_participant_joined(transport, participant_id): async def on_first_participant_joined(transport, participant_id):
await task.queue_frame(TextFrame(f"Hello there!")) await task.queue_frame(TextFrame(f"Hello there!"))

View File

@@ -47,7 +47,7 @@ google = [ "google-generativeai~=0.7.2" ]
gstreamer = [ "pygobject~=3.48.2" ] gstreamer = [ "pygobject~=3.48.2" ]
fireworks = [ "openai~=1.37.2" ] fireworks = [ "openai~=1.37.2" ]
langchain = [ "langchain~=0.2.14", "langchain-community~=0.2.12", "langchain-openai~=0.1.20" ] langchain = [ "langchain~=0.2.14", "langchain-community~=0.2.12", "langchain-openai~=0.1.20" ]
livekit = [ "livekit~=0.13.1" ] livekit = [ "livekit~=0.13.1", "tenacity~=9.0.0" ]
lmnt = [ "lmnt~=1.1.4" ] lmnt = [ "lmnt~=1.1.4" ]
local = [ "pyaudio~=0.2.14" ] local = [ "pyaudio~=0.2.14" ]
moondream = [ "einops~=0.8.0", "timm~=1.0.8", "transformers~=4.44.0" ] moondream = [ "einops~=0.8.0", "timm~=1.0.8", "transformers~=4.44.0" ]