mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-03-11 08:15:01 +08:00
Update infer-web.py
This commit is contained in:
parent
99e7993625
commit
deb756bf1b
@ -229,8 +229,6 @@ def vc_single(
|
|||||||
protect,
|
protect,
|
||||||
f0_file=f0_file,
|
f0_file=f0_file,
|
||||||
)
|
)
|
||||||
if tgt_sr != resample_sr >= 16000:
|
|
||||||
tgt_sr = resample_sr
|
|
||||||
index_info = (
|
index_info = (
|
||||||
"Using index:%s." % file_index
|
"Using index:%s." % file_index
|
||||||
if os.path.exists(file_index)
|
if os.path.exists(file_index)
|
||||||
@ -241,7 +239,7 @@ def vc_single(
|
|||||||
times[0],
|
times[0],
|
||||||
times[1],
|
times[1],
|
||||||
times[2],
|
times[2],
|
||||||
), (tgt_sr, audio_opt)
|
), (resample_sr if resample_sr >= 16000 and tgt_sr != resample_sr else tgt_sr, audio_opt)
|
||||||
except:
|
except:
|
||||||
info = traceback.format_exc()
|
info = traceback.format_exc()
|
||||||
print(info)
|
print(info)
|
||||||
|
Loading…
Reference in New Issue
Block a user