From deb756bf1b0bc5924865e646dc7925c68c9f5bc5 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Wed, 16 Aug 2023 16:12:51 +0800 Subject: [PATCH] Update infer-web.py --- infer-web.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/infer-web.py b/infer-web.py index 925ee0d..742299b 100644 --- a/infer-web.py +++ b/infer-web.py @@ -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)