Files
avc-phone-ai/bot.py
tocmo0nlord db986ecf76 Allow transcription-triggered interruptions (fixes double-reply collision)
Live call: caller said "this is Carlos", the reply started, caller continued
"How are you doing today?" - with all interruptions off, both replies queued
and played back-to-back (~10s of bot monologue answering two different
things). Middle ground: VAD-triggered interruptions stay OFF (raw VAD fires
on noise with no transcript - that was the dead-air bug), but transcription-
triggered interruptions are back ON: only real transcribed caller speech can
cancel a stale queued reply. Noise cannot produce a transcript, so the
dead-air regression is structurally impossible.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-04 17:13:14 +00:00

48 KiB