From 9cad8bfcc67e7c1f5af3f4089c899189fed4d85b Mon Sep 17 00:00:00 2001 From: Filipi Fuchter Date: Wed, 12 Mar 2025 15:36:40 -0300 Subject: [PATCH] Increasing the time that we are waiting for the frame. --- src/pipecat/transports/network/small_webrtc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipecat/transports/network/small_webrtc.py b/src/pipecat/transports/network/small_webrtc.py index d99813a77..3fe244969 100644 --- a/src/pipecat/transports/network/small_webrtc.py +++ b/src/pipecat/transports/network/small_webrtc.py @@ -185,7 +185,7 @@ class SmallWebRTCClient: continue try: - frame = await asyncio.wait_for(self._video_input_track.recv(), timeout=1.0) + frame = await asyncio.wait_for(self._video_input_track.recv(), timeout=2.0) except asyncio.TimeoutError: if self._webrtcConnection.is_connected(): logger.warning("Timeout: No video frame received within the specified time.") @@ -232,7 +232,7 @@ class SmallWebRTCClient: continue try: - frame = await asyncio.wait_for(self._audio_input_track.recv(), timeout=1.0) + frame = await asyncio.wait_for(self._audio_input_track.recv(), timeout=2.0) except asyncio.TimeoutError: if self._webrtcConnection.is_connected(): logger.warning("Timeout: No audio frame received within the specified time.")