1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-07 19:40:44 +08:00

Adopt any directory format (#2052)

Signed-off-by: Xavier Lau <xavier@inv.cafe>
This commit is contained in:
Xavier Lau
2024-05-15 13:10:48 +08:00
committed by GitHub
parent b0fca77ea0
commit 6c6d62df59
3 changed files with 7 additions and 12 deletions

View File

@@ -65,8 +65,7 @@ def uvr(model_name, inp_root, save_root_vocal, paths, save_root_ins, agg, format
os.path.basename(inp_path),
)
os.system(
"ffmpeg -i %s -vn -acodec pcm_s16le -ac 2 -ar 44100 %s -y"
% (inp_path, tmp_path)
f'ffmpeg -i "{inp_path}" -vn -acodec pcm_s16le -ac 2 -ar 44100 "{tmp_path}" -y'
)
inp_path = tmp_path
try: