Add files via upload

This commit is contained in:
RVC-Boss 2024-06-10 16:14:15 +08:00 committed by GitHub
parent c7646a1520
commit 917236ed72

View File

@ -220,7 +220,7 @@ class Predictor:
opt_path_other = path_other[:-4] + ".%s" % format opt_path_other = path_other[:-4] + ".%s" % format
if os.path.exists(path_vocal): if os.path.exists(path_vocal):
os.system( os.system(
"ffmpeg -i %s -vn %s -q:a 2 -y" % (path_vocal, opt_path_vocal) "ffmpeg -i '%s' -vn '%s' -q:a 2 -y" % (path_vocal, opt_path_vocal)
) )
if os.path.exists(opt_path_vocal): if os.path.exists(opt_path_vocal):
try: try:
@ -229,7 +229,7 @@ class Predictor:
pass pass
if os.path.exists(path_other): if os.path.exists(path_other):
os.system( os.system(
"ffmpeg -i %s -vn %s -q:a 2 -y" % (path_other, opt_path_other) "ffmpeg -i '%s' -vn '%s' -q:a 2 -y" % (path_other, opt_path_other)
) )
if os.path.exists(opt_path_other): if os.path.exists(opt_path_other):
try: try: