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: Phrase punctuation should be use for pronunciation not spoken aloud

Clémence Lesné680452faf47a
diff --git a/helpers/call_utils.py b/helpers/call_utils.py
index c9afeaf..f8bb02e 100644
--- a/helpers/call_utils.py
+++ b/helpers/call_utils.py
@@ -70,7 +70,7 @@ def tts_sentence_split(
)
else: # Add punctuation back
yield (
- "%s %s" % (split.strip(), splits[i + 1].strip()),
+ split.strip() + splits[i + 1].strip(),
len(split) + len(splits[i + 1]),
)