From e292f00ee8fc1344e9e70a11b66ce4cf41e8ec3b Mon Sep 17 00:00:00 2001 From: Josh Greenwood Date: Sat, 23 Jul 2022 16:53:45 +0100 Subject: [PATCH] fix bug with empty TTS text --- 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 c5ed714..7f32c68 100644 --- a/TTS/engine_wrapper.py +++ b/TTS/engine_wrapper.py @@ -88,7 +88,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