From 294dfb400e8afc8eaffb3da03b807d2a69f067c3 Mon Sep 17 00:00:00 2001 From: rootflo-hardik Date: Wed, 18 Mar 2026 12:48:09 +0530 Subject: [PATCH 1/2] inc idle_timeout_secs to 50 - also added UserStartedSpeakingFrame and BotStartedSpeakingFrame as idle_timeout_frame --- .../call_processing/services/pipecat_service.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/wavefront/server/apps/call_processing/call_processing/services/pipecat_service.py b/wavefront/server/apps/call_processing/call_processing/services/pipecat_service.py index 2978c7de..99ea7296 100644 --- a/wavefront/server/apps/call_processing/call_processing/services/pipecat_service.py +++ b/wavefront/server/apps/call_processing/call_processing/services/pipecat_service.py @@ -16,7 +16,14 @@ from pipecat.adapters.schemas.tools_schema import ToolsSchema from pipecat.adapters.schemas.function_schema import FunctionSchema from pipecat.audio.turn.smart_turn.local_smart_turn_v3 import LocalSmartTurnAnalyzerV3 -from pipecat.frames.frames import Frame, TTSSpeakFrame +from pipecat.frames.frames import ( + Frame, + TTSSpeakFrame, + BotSpeakingFrame, + BotStartedSpeakingFrame, + UserSpeakingFrame, + UserStartedSpeakingFrame, +) from pipecat.pipeline.parallel_pipeline import ParallelPipeline from pipecat.pipeline.pipeline import Pipeline from pipecat.pipeline.runner import PipelineRunner @@ -555,7 +562,13 @@ async def run_conversation( # enable_usage_metrics=True, # report_only_initial_ttfb=True ), - idle_timeout_secs=20, + idle_timeout_frames=( + BotSpeakingFrame, + UserSpeakingFrame, + BotStartedSpeakingFrame, + UserStartedSpeakingFrame, + ), + idle_timeout_secs=50, ) # Populate task container for language detection tool (if multi-language) From e83894e1763048528e81fdd3d4d698638e87d9ca Mon Sep 17 00:00:00 2001 From: rootflo-hardik Date: Wed, 18 Mar 2026 15:53:12 +0530 Subject: [PATCH 2/2] increase timeout to 300 from 50 --- .../call_processing/call_processing/services/pipecat_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wavefront/server/apps/call_processing/call_processing/services/pipecat_service.py b/wavefront/server/apps/call_processing/call_processing/services/pipecat_service.py index e403c379..477cc943 100644 --- a/wavefront/server/apps/call_processing/call_processing/services/pipecat_service.py +++ b/wavefront/server/apps/call_processing/call_processing/services/pipecat_service.py @@ -658,7 +658,7 @@ async def on_assistant_turn_stopped( BotStartedSpeakingFrame, UserStartedSpeakingFrame, ), - idle_timeout_secs=50, + idle_timeout_secs=300, enable_tracing=ENABLE_TRACING, enable_turn_tracking=ENABLE_TURN_TRACKING, conversation_id=None,