From 10fe183ac26d7d71c485fce75c48cec394d24d57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhammed=20Mustafa=20Ak=C5=9Fam?= Date: Thu, 30 Jun 2022 22:24:19 +0300 Subject: [PATCH] Update engine_wrapper.py Fixed not sanitizing the text issue that occurs if POSTLANG is set --- TTS/engine_wrapper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TTS/engine_wrapper.py b/TTS/engine_wrapper.py index ca297e1..d6c3625 100644 --- a/TTS/engine_wrapper.py +++ b/TTS/engine_wrapper.py @@ -106,5 +106,6 @@ def process_text(text: str): new_text = sanitize_text(text) if lang: print_substep("Translating Text...") - new_text = ts.google(text, to_language=lang) + translated_text = ts.google(text, to_language=lang) + new_text = sanitize_text(translated_text) return new_text