From 7ebea11608d6731f7e894ee2c8db733f9cc594ec Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 06:14:23 +0000 Subject: [PATCH] fixup: Format Python code with Black --- TTS/engine_wrapper.py | 5 +++-- video_creation/background.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/TTS/engine_wrapper.py b/TTS/engine_wrapper.py index ec5c028..1026a6d 100644 --- a/TTS/engine_wrapper.py +++ b/TTS/engine_wrapper.py @@ -5,14 +5,15 @@ from typing import Tuple import numpy as np import translators -from moviepy.audio.AudioClip import AudioClip from moviepy import AudioFileClip +from moviepy.audio.AudioClip import AudioClip +from moviepy.audio.fx import MultiplyVolume from rich.progress import track from utils import settings from utils.console import print_step, print_substep from utils.voice import sanitize_text -from moviepy.audio.fx import MultiplyVolume + DEFAULT_MAX_LENGTH: int = ( 50 # Video length variable, edit this on your own risk. It should work, but it's not supported ) diff --git a/video_creation/background.py b/video_creation/background.py index ff4f318..aad552d 100644 --- a/video_creation/background.py +++ b/video_creation/background.py @@ -153,7 +153,7 @@ def chop_background(background_config: Dict[str, Tuple], video_length: int, redd with VideoFileClip(f"assets/backgrounds/video/{video_choice}") as video: new = video.subclipped(start_time_video, end_time_video) new.write_videofile(f"assets/temp/{thread_id}/background.mp4") - + except (OSError, IOError): # ffmpeg issue see #348 print_substep("FFMPEG issue. Trying again...") ffmpeg_extract_subclip(