From d5a6cbc5b3fc2acf82dad2704da6698d543925f2 Mon Sep 17 00:00:00 2001 From: Michael Kali <89668997+mkali-personal@users.noreply.github.com> Date: Fri, 15 Sep 2023 23:26:12 +0300 Subject: [PATCH] fix windows path to string bug --- manim_voiceover/services/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manim_voiceover/services/base.py b/manim_voiceover/services/base.py index bc78195..fc6c898 100644 --- a/manim_voiceover/services/base.py +++ b/manim_voiceover/services/base.py @@ -110,8 +110,8 @@ def _wrap_generate_from_text(self, text: str, path: str = None, **kwargs) -> dic adjusted_path = split_path[0] + "_adjusted" + split_path[1] adjust_speed( - Path(self.cache_dir) / dict_["original_audio"], - Path(self.cache_dir) / adjusted_path, + str(Path(self.cache_dir) / dict_["original_audio"]), + str(Path(self.cache_dir) / adjusted_path), self.global_speed, ) dict_["final_audio"] = adjusted_path