mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-07 02:00:25 +08:00
chore(format): run black on dev (#94)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a8783c6639
commit
d3add81469
@@ -252,8 +252,12 @@ class VC:
|
||||
try:
|
||||
tgt_sr, audio_opt = opt
|
||||
if format1 in ["wav", "flac"]:
|
||||
save_audio("%s/%s.%s"
|
||||
% (opt_root, os.path.basename(path), format1), audio_opt, tgt_sr)
|
||||
save_audio(
|
||||
"%s/%s.%s"
|
||||
% (opt_root, os.path.basename(path), format1),
|
||||
audio_opt,
|
||||
tgt_sr,
|
||||
)
|
||||
else:
|
||||
path = "%s/%s.%s" % (
|
||||
opt_root,
|
||||
@@ -261,7 +265,11 @@ class VC:
|
||||
format1,
|
||||
)
|
||||
with open(path, "wb") as outf:
|
||||
wav2(float_np_array_to_wav_buf(audio_opt, tgt_sr), outf, format1)
|
||||
wav2(
|
||||
float_np_array_to_wav_buf(audio_opt, tgt_sr),
|
||||
outf,
|
||||
format1,
|
||||
)
|
||||
except:
|
||||
info += traceback.format_exc()
|
||||
infos.append("%s->%s" % (os.path.basename(path), info))
|
||||
|
||||
Reference in New Issue
Block a user