Skip to content

Commit e87259f

Browse files
inc idle_timeout_secs to 300 (#246)
* inc idle_timeout_secs to 50 - also added UserStartedSpeakingFrame and BotStartedSpeakingFrame as idle_timeout_frame * increase timeout to 300 from 50
1 parent ece7f06 commit e87259f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

wavefront/server/apps/call_processing/call_processing/services/pipecat_service.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
Frame,
2929
StopFrame,
3030
TTSSpeakFrame,
31+
BotSpeakingFrame,
32+
BotStartedSpeakingFrame,
33+
UserSpeakingFrame,
34+
UserStartedSpeakingFrame,
3135
)
3236
from pipecat.pipeline.parallel_pipeline import ParallelPipeline
3337
from pipecat.pipeline.pipeline import Pipeline
@@ -648,7 +652,13 @@ async def on_assistant_turn_stopped(
648652
# enable_usage_metrics=True,
649653
# report_only_initial_ttfb=True
650654
),
651-
idle_timeout_secs=20,
655+
idle_timeout_frames=(
656+
BotSpeakingFrame,
657+
UserSpeakingFrame,
658+
BotStartedSpeakingFrame,
659+
UserStartedSpeakingFrame,
660+
),
661+
idle_timeout_secs=300,
652662
enable_tracing=ENABLE_TRACING,
653663
enable_turn_tracking=ENABLE_TURN_TRACKING,
654664
conversation_id=None,

0 commit comments

Comments
 (0)