From d1b3b68e83aae85f9b31ca0ed91cebdcce3446d7 Mon Sep 17 00:00:00 2001 From: Syed Aman Raza <109358640+electro199@users.noreply.github.com> Date: Tue, 11 Oct 2022 11:32:50 +0500 Subject: [PATCH] fixed c drive issue --- TTS/engine_wrapper.py | 2 +- utils/imagenarator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TTS/engine_wrapper.py b/TTS/engine_wrapper.py index f617a63..06f3c7b 100644 --- a/TTS/engine_wrapper.py +++ b/TTS/engine_wrapper.py @@ -68,7 +68,7 @@ class TTSEngine: self.call_tts("postaudio",process_text(self.reddit_object["thread_post"]) ) elif settings.config["settings"]["storymodemethod"] == 1: - for idx,text in enumerate(self.reddit_object["thread_post"]): + for idx,text in track(enumerate(self.reddit_object["thread_post"])): self.call_tts(f"postaudio-{idx}",process_text(text) ) else : diff --git a/utils/imagenarator.py b/utils/imagenarator.py index 67ec10b..1b5ccf3 100644 --- a/utils/imagenarator.py +++ b/utils/imagenarator.py @@ -23,7 +23,7 @@ def imagemaker( theme,reddit_obj, ): texts=reddit_obj['thread_post'] id = re.sub(r"[^\w\s-]", "", reddit_obj["thread_id"]) - font=ImageFont.truetype("C:\\fonts\\NotoSans-Regular.ttf", 20) + font=ImageFont.truetype("arial.ttf", 20) size=(500,176) textcolor=txtclr