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

ux: Don't cut sentences by coma

Clémence Lesné68a5a84cfd88
diff --git a/helpers/call_utils.py b/helpers/call_utils.py
index cfa4255..38f0076 100644
--- a/helpers/call_utils.py
+++ b/helpers/call_utils.py
@@ -27,7 +27,7 @@ import json
_SENTENCE_PUNCTUATION_R = (
- r"([!?;,]+|[\.\-:]+(?:$| ))" # Split by sentence by punctuation
+ r"([!?;]+|[\.\-:]+(?:$| ))" # Split by sentence by punctuation
)
_TTS_SANITIZER_R = re.compile(
r"[^\w\sÀ-ÿ'«»“”\"\"‘’''(),.!?;:\-\+_@/&<>€$%=*]"