Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
fix: Splited text can be harsh
Clémence Lesné2d406ef10404
diff --git a/main.py b/main.pyindex 50e8a46..3343c76 100644--- a/main.py+++ b/main.py@@ -507,7 +507,7 @@ async def handle_play(chunks = []chunk = ""for word in text.split("."): # Split by sentence- to_add = f"{word}."+ to_add = f"{word}. "if len(chunk) + len(to_add) >= 400:chunks.append(chunk)chunk = ""