return
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user