mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-25 02:58:33 +08:00
Update inference_webui.py
This commit is contained in:
parent
8ed7a7d321
commit
f37b39e61a
@ -410,6 +410,8 @@ def get_tts_wav(ref_wav_path, prompt_text, prompt_language, text, text_language,
|
|||||||
.cpu()
|
.cpu()
|
||||||
.numpy()[0, 0]
|
.numpy()[0, 0]
|
||||||
) ###试试重建不带上prompt部分
|
) ###试试重建不带上prompt部分
|
||||||
|
max_audio=np.abs(audio).max()#简单防止16bit爆音
|
||||||
|
if max_audio>1:audio/=max_audio
|
||||||
audio_opt.append(audio)
|
audio_opt.append(audio)
|
||||||
audio_opt.append(zero_wav)
|
audio_opt.append(zero_wav)
|
||||||
t4 = ttime()
|
t4 = ttime()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user