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

quality: Code lint

Clémence Lesnéc248157f2946
diff --git a/main.py b/main.py
index dc9ae60..f6243d1 100644
--- a/main.py
+++ b/main.py
@@ -451,7 +451,8 @@ async def handle_play(
try:
client.play_media_to_all(
- play_source=audio_from_text(text), operation_context=context
+ operation_context=context,
+ play_source=audio_from_text(text),
)
except ResourceNotFoundError:
_logger.debug(f"Call hung up before playing ({call.id})")