This commit is contained in:
Ftps
2023-11-19 04:06:52 +09:00
parent 2532e81561
commit 74c4c2f7c7

View File

@@ -144,24 +144,15 @@ class VC:
protect, protect,
f0_file, f0_file,
) )
if self.tgt_sr != resample_sr >= 16000:
tgt_sr = resample_sr tgt_sr = resample_sr if self.tgt_sr != resample_sr >= 16000 else self.tgt_sr
else:
tgt_sr = self.tgt_sr return tgt_sr, audio_opt, times, None
index_info = (
"Index:\n%s." % file_index except Exception:
if os.path.exists(file_index)
else "Index not used."
)
return (
"Success.\n%s\nTime:\nnpy: %.2fs, f0: %.2fs, infer: %.2fs."
% (index_info, *times),
(tgt_sr, audio_opt),
)
except:
info = traceback.format_exc() info = traceback.format_exc()
logger.warning(info) logger.warning(info)
return info, (None, None) return None, None, None, info
def vc_multi( def vc_multi(
self, self,