Skip to content

Commit

Permalink
Merge pull request IAHispano#828 from IAHispano/formatter/main
Browse files Browse the repository at this point in the history
chore(format): run black on main
  • Loading branch information
blaisewf authored Oct 18, 2024
2 parents d80c04f + 50a4e56 commit f0ae387
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions rvc/train/preprocess/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0ae387

Please sign in to comment.