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: Avoid truncating two points, it can be used to say the hour

Clémence Lesnéa261b3dffe27
diff --git a/helpers/call_utils.py b/helpers/call_utils.py
index 28da7c0..f41a40e 100644
--- a/helpers/call_utils.py
+++ b/helpers/call_utils.py
@@ -24,7 +24,7 @@ import re
_logger = build_logger(__name__)
_SENTENCE_PUNCTUATION_R = r"(\. |\.$|[!?;])" # Split by sentence by punctuation
_TTS_SANITIZER_R = re.compile(
- r"[^\w\s'«»“”\"\"‘’''(),.!?;\-\+_@/]"
+ r"[^\w\s'«»“”\"\"‘’''(),.!?;:\-\+_@/]"
) # Sanitize text for TTS