add transfer call tool editor

This commit is contained in:
Abhishek Kumar 2026-02-06 09:45:34 +05:30
parent f77a2afca6
commit 97a44f00ff
6 changed files with 229 additions and 29 deletions

View file

@ -279,7 +279,9 @@ class CustomToolManager:
# Wait for the audio to play or until stopped
try:
await asyncio.wait_for(stop_event.wait(), timeout=duration_secs)
await asyncio.wait_for(
stop_event.wait(), timeout=duration_secs + 1.5
)
break # Stop event was set
except asyncio.TimeoutError:
pass # Continue looping