|
|
|
@ -100,8 +100,9 @@ class TTSEngine:
|
|
|
|
|
|
|
|
|
|
idy = None
|
|
|
|
|
for idy, text_cut in enumerate(split_text):
|
|
|
|
|
# print(f"{idx}-{idy}: {text_cut}\n")
|
|
|
|
|
|
|
|
|
|
newtext = process_text(text_cut)
|
|
|
|
|
print(f"{idx}-{idy}: {newtext}\n")
|
|
|
|
|
if not newtext or newtext.isspace():
|
|
|
|
|
print("newtext was blank because sanitized split text resulted in none")
|
|
|
|
|
continue
|
|
|
|
@ -118,8 +119,8 @@ class TTSEngine:
|
|
|
|
|
"-i " + f"{self.path}/list.txt " +
|
|
|
|
|
"-c copy " + f"{self.path}/{idx}.mp3")
|
|
|
|
|
try:
|
|
|
|
|
name = rf"{self.path}/{idx}-{idz}.part.mp3"
|
|
|
|
|
os.unlink(name)
|
|
|
|
|
for i in range(0, len(split_files)):
|
|
|
|
|
os.unlink(split_files[i])
|
|
|
|
|
except FileNotFoundError:
|
|
|
|
|
print("file not found error")
|
|
|
|
|
except OSError:
|
|
|
|
|