|
|
|
@ -62,7 +62,7 @@ class TTSEngine:
|
|
|
|
|
if (
|
|
|
|
|
processed_text != ""
|
|
|
|
|
and settings.config["settings"]["storymode"] == True
|
|
|
|
|
):
|
|
|
|
|
):
|
|
|
|
|
self.call_tts("posttext", processed_text)
|
|
|
|
|
|
|
|
|
|
idx = None
|
|
|
|
@ -122,7 +122,7 @@ class TTSEngine:
|
|
|
|
|
def call_tts(self, filename: str, text: str):
|
|
|
|
|
self.tts_module.run(
|
|
|
|
|
text, filepath=f"{self.path}/{filename}.mp3"
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
# try:
|
|
|
|
|
# self.length += MP3(f"{self.path}/{filename}.mp3").info.length
|
|
|
|
|
# except (MutagenError, HeaderNotFoundError):
|
|
|
|
|