From 8c9bb9e45c910abc0e3196c719519ae02c926cd9 Mon Sep 17 00:00:00 2001 From: ylzz1997 Date: Tue, 4 Apr 2023 15:18:37 +0800 Subject: [PATCH] Format function --- inference/infer_tool.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/inference/infer_tool.py b/inference/infer_tool.py index 0ea8397..fa787e3 100644 --- a/inference/infer_tool.py +++ b/inference/infer_tool.py @@ -199,7 +199,18 @@ class Svc(object): # 清理显存 torch.cuda.empty_cache() - def slice_inference(self,raw_audio_path, spk, tran, slice_db,cluster_infer_ratio, auto_predict_f0,noice_scale, pad_seconds=0.5, clip_seconds=0,lg_num=0,lgr_num =0.75): + def slice_inference(self, + raw_audio_path, + spk, + tran, + slice_db, + cluster_infer_ratio, + auto_predict_f0, + noice_scale, + pad_seconds=0.5, + clip_seconds=0, + lg_num=0, + lgr_num =0.75): wav_path = raw_audio_path chunks = slicer.cut(wav_path, db_thresh=slice_db) audio_data, audio_sr = slicer.chunks2audio(wav_path, chunks)