Update infer-web.py

This commit is contained in:
RVC-Boss 2023-08-16 16:12:51 +08:00 committed by GitHub
parent 99e7993625
commit deb756bf1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -229,8 +229,6 @@ def vc_single(
protect,
f0_file=f0_file,
)
if tgt_sr != resample_sr >= 16000:
tgt_sr = resample_sr
index_info = (
"Using index:%s." % file_index
if os.path.exists(file_index)
@ -241,7 +239,7 @@ def vc_single(
times[0],
times[1],
times[2],
), (tgt_sr, audio_opt)
), (resample_sr if resample_sr >= 16000 and tgt_sr != resample_sr else tgt_sr, audio_opt)
except:
info = traceback.format_exc()
print(info)