From baf61b61d8928c422454a0a1ec58d1ac53795da0 Mon Sep 17 00:00:00 2001 From: Jacky He Date: Tue, 12 Aug 2025 12:06:39 +0800 Subject: [PATCH] fix: wrong args name --- GPT_SoVITS/inference_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPT_SoVITS/inference_cli.py b/GPT_SoVITS/inference_cli.py index ee13ece8..795600ae 100644 --- a/GPT_SoVITS/inference_cli.py +++ b/GPT_SoVITS/inference_cli.py @@ -27,7 +27,7 @@ def synthesize(args: argparse.Namespace): } # region - optional params - if args.how_to_cut: params["how_to_cut"] = i18n(args.slicer) + if args.slicer: params["how_to_cut"] = i18n(args.slicer) if args.top_k: params["top_k"] = args.top_k if args.top_p: params["top_p"] = args.top_p if args.temperature: params["temperature"] = args.temperature @@ -46,9 +46,9 @@ def synthesize(args: argparse.Namespace): result_list = list(synthesis_result) if result_list: - last_sampling_rate, last_audio_data = result_list[-1] os.makedirs(args.output_path, exist_ok=True) # Create output directory if it doesn't exist output_wav_path = os.path.join(args.output_path, "output.wav") + last_sampling_rate, last_audio_data = result_list[-1] sf.write(output_wav_path, last_audio_data, last_sampling_rate) print(f"Audio saved to {output_wav_path}")