From 2cd843dcbc45899547c5860393f305f8f9c804c6 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Thu, 27 Feb 2025 22:46:29 +0800 Subject: [PATCH] Update inference_webui.py --- GPT_SoVITS/inference_webui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPT_SoVITS/inference_webui.py b/GPT_SoVITS/inference_webui.py index 6c10561..c2c65a1 100644 --- a/GPT_SoVITS/inference_webui.py +++ b/GPT_SoVITS/inference_webui.py @@ -703,7 +703,7 @@ def get_tts_wav(ref_wav_path, prompt_text, prompt_language, text, text_language, if if_sr==True and sr==24000: print(i18n("音频超分中")) audio_opt,sr=audio_sr(audio_opt.unsqueeze(0),sr) - max_audio=np.abs(audio).max() + max_audio=np.abs(audio_opt).max() if max_audio > 1: audio /= max_audio else: audio_opt=audio_opt.cpu().detach().numpy()