From d916865cccb77142584fcfbf72f099339e32a649 Mon Sep 17 00:00:00 2001 From: Filipi Fuchter Date: Thu, 10 Apr 2025 23:10:50 -0300 Subject: [PATCH] Fixing voice agent example to work with the last released version of pipecat. --- examples/p2p-webrtc/voice-agent/bot.py | 2 ++ examples/p2p-webrtc/voice-agent/requirements.txt | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/p2p-webrtc/voice-agent/bot.py b/examples/p2p-webrtc/voice-agent/bot.py index 07106022c..8ea05963f 100644 --- a/examples/p2p-webrtc/voice-agent/bot.py +++ b/examples/p2p-webrtc/voice-agent/bot.py @@ -44,6 +44,8 @@ async def run_bot(webrtc_connection): vad_enabled=True, vad_analyzer=SileroVADAnalyzer(), vad_audio_passthrough=True, + audio_out_10ms_chunks=2 + ), ) diff --git a/examples/p2p-webrtc/voice-agent/requirements.txt b/examples/p2p-webrtc/voice-agent/requirements.txt index d8ffd53ef..b16fb9ddc 100644 --- a/examples/p2p-webrtc/voice-agent/requirements.txt +++ b/examples/p2p-webrtc/voice-agent/requirements.txt @@ -1,5 +1,4 @@ python-dotenv fastapi[all] uvicorn -aiortc -pipecat-ai[google,silero] \ No newline at end of file +pipecat-ai[google,silero, webrtc] \ No newline at end of file