Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

dev: Display log when voice is cutted

Clémence Lesnéfc6ac38c946b
diff --git a/app/helpers/call_llm.py b/app/helpers/call_llm.py
index ad74678..147ae43 100644
--- a/app/helpers/call_llm.py
+++ b/app/helpers/call_llm.py
@@ -729,9 +729,8 @@ async def _process_audio_for_vad( # noqa: PLR0913
# Wait before clearing the TTS queue
await asyncio.sleep(timeout_ms / 1000)
- logger.debug("Canceling TTS after %i ms", timeout_ms)
-
# Clear the queue
+ logger.info("Stoping TTS after %i ms", timeout_ms)
await stop_callback()
while True: