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

fix: Listen voice after an unknown error

Clémence Lesné90860983bb45
diff --git a/main.py b/main.py
index b555656..5c32f08 100644
--- a/main.py
+++ b/main.py
@@ -363,7 +363,7 @@ async def communication_event_worker(
else: # Other recognition error
_logger.warn(f"Recognition failed with unknown error code {error_code}, answering with default error ({call.call_id})")
- await handle_play(
+ await handle_recognize_text(
call=call,
client=client,
text=CONFIG.prompts.tts.error(),