Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
fix: Assistant stop when user speak
Clémence Lesnéf27e24a5e549
diff --git a/app/helpers/call_llm.py b/app/helpers/call_llm.pyindex 44b5489..ff77234 100644--- a/app/helpers/call_llm.py+++ b/app/helpers/call_llm.py@@ -167,6 +167,11 @@ async def load_llm_chat( # noqa: PLR0913, PLR0915stt_buffer.clear()stt_complete_gate.clear()+ # Clear the audio buffer+ while not audio_out.empty():+ audio_out.get_nowait()+ audio_out.task_done()+# Send a stop signalawait audio_out.put(False)