1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-08 03:55:47 +08:00

Apply Code Formatter Change

This commit is contained in:
Tps-F
2023-08-19 10:58:39 +00:00
committed by github-actions[bot]
parent c25bb6c5d5
commit cb42c6990b
3 changed files with 18 additions and 10 deletions

View File

@@ -205,7 +205,7 @@ class AudioPreDeEcho:
self.model = model
def _path_audio_(
self, music_file, vocal_root=None, ins_root=None, format="flac"
self, music_file, vocal_root=None, ins_root=None, format="flac"
): # 3个VR模型vocal和ins是反的
if ins_root is None and vocal_root is None:
return "No save root."
@@ -222,7 +222,7 @@ class AudioPreDeEcho:
if d == bands_n: # high-end band
(
X_wave[d],
_,
_,
) = librosa.core.load( # 理论上librosa读取可能对某些音频有bug应该上ffmpeg读取但是太麻烦了弃坑
music_file,
bp["sr"],
@@ -341,4 +341,4 @@ class AudioPreDeEcho:
os.system(
"ffmpeg -i %s -vn %s -q:a 2 -y"
% (path, path[:-4] + ".%s" % format)
)
)