feat: VAD-based barge-in during TTS playback
This commit is contained in:
@@ -3,7 +3,7 @@ import sys
|
|||||||
|
|
||||||
from .config import GATEWAY_URL, AGENT, AGENTS, log
|
from .config import GATEWAY_URL, AGENT, AGENTS, log
|
||||||
from .audio import record
|
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
|
from .llm import ask_agent_stream, is_reset_command, VOICE_SESSION_KEY
|
||||||
|
|
||||||
WAKE_THRESHOLD = float(os.getenv("WAKE_THRESHOLD", "0.5"))
|
WAKE_THRESHOLD = float(os.getenv("WAKE_THRESHOLD", "0.5"))
|
||||||
|
|||||||
Reference in New Issue
Block a user