mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
feat: add early voicemail detection
This commit is contained in:
parent
e4759ac6f2
commit
771781096e
3 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
2
pipecat
2
pipecat
|
|
@ -1 +1 @@
|
|||
Subproject commit 8bc718e6f136cb19814db5b8ce8412ae3a6ed393
|
||||
Subproject commit b6877678e9ee78d5d96960b072729b77ae247b6d
|
||||
Loading…
Add table
Add a link
Reference in a new issue