process split text before checking if it is empty

This commit is contained in:
Josh Greenwood authored and GitHub committed 2022-07-23 17:00:34 +01:00
1 parent 12f99f4e9d
commit 571c782021
1 file changed
+1 -1
+1 -1
View File
@@ -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