From 571c78202168eece080597e366d0347580caff7b Mon Sep 17 00:00:00 2001 From: Josh Greenwood <31244208+joshgreenwood2003@users.noreply.github.com> Date: Sat, 23 Jul 2022 17:00:34 +0100 Subject: [PATCH] process split text before checking if it is empty --- TTS/engine_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/engine_wrapper.py b/TTS/engine_wrapper.py index 267f47a..354f467 100644 --- a/TTS/engine_wrapper.py +++ b/TTS/engine_wrapper.py @@ -94,7 +94,7 @@ class TTSEngine: offset = 0 for idy, text_cut in enumerate(split_text): # print(f"{idx}-{idy}: {text_cut}\n") - if not text_cut or text_cut.isspace(): + if not process_text(text_cut) or process_text(text_cut.isspace()): offset += 1 continue