feat: VAD-based barge-in during TTS playback

This commit is contained in:
Cosmo
2026-04-14 15:28:14 +00:00
parent cdf8748e48
commit a885cbe74b

View File

@@ -3,7 +3,7 @@ import sys
from .config import GATEWAY_URL, AGENT, AGENTS, log
from .audio import record
from .tts import speak, stop_speaking, is_speaking
from .tts import speak, stop_speaking, is_speaking, start_barge_in_listener, was_barge_in
from .llm import ask_agent_stream, is_reset_command, VOICE_SESSION_KEY
WAKE_THRESHOLD = float(os.getenv("WAKE_THRESHOLD", "0.5"))