From 50a4e56ce7143e78ef0ef7b7ab9094a72aeb312e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 18 Oct 2024 21:25:35 +0000 Subject: [PATCH] chore(format): run black on main --- rvc/train/preprocess/preprocess.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/rvc/train/preprocess/preprocess.py b/rvc/train/preprocess/preprocess.py index f6c030b4..ef80a28c 100644 --- a/rvc/train/preprocess/preprocess.py +++ b/rvc/train/preprocess/preprocess.py @@ -118,18 +118,29 @@ def process_audio( start : start + int(self.per * self.sr) ] self.process_audio_segment( - tmp_audio, sid, idx0, idx1, + tmp_audio, + sid, + idx0, + idx1, ) idx1 += 1 else: tmp_audio = audio_segment[start:] self.process_audio_segment( - tmp_audio, sid, idx0, idx1, + tmp_audio, + sid, + idx0, + idx1, ) idx1 += 1 break else: - self.process_audio_segment(audio, sid, idx0, idx1,) + self.process_audio_segment( + audio, + sid, + idx0, + idx1, + ) except Exception as error: print(f"Error processing audio: {error}") return audio_length