feat: add early voicemail detection

This commit is contained in:
Abhishek Kumar 2026-03-07 12:41:24 +05:30
parent e4759ac6f2
commit 771781096e
3 changed files with 4 additions and 2 deletions

View file

@ -667,7 +667,8 @@ async def _run_pipeline(
voicemail_llm = create_llm_service(user_config)
voicemail_detector = VoicemailDetector(
llm=voicemail_llm,
voicemail_response_delay=2.0,
voicemail_response_delay=1.0,
long_speech_timeout=8.0,
)
# Register event handler to end task when voicemail is detected

View file

@ -53,6 +53,7 @@ def create_stt_service(
params=DeepgramFluxSTTService.InputParams(
eot_timeout_ms=3000,
eot_threshold=0.7,
eager_eot_threshold=0.5,
keyterm=keyterms or [],
),
should_interrupt=False, # Let UserAggregator take care of sending InterruptionFrame

@ -1 +1 @@
Subproject commit 8bc718e6f136cb19814db5b8ce8412ae3a6ed393
Subproject commit b6877678e9ee78d5d96960b072729b77ae247b6d