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: Allow for accented in TTS

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