From ae395dc4166aa8874fba037a4dc71e4d8bbfb38e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 8 Apr 2025 11:54:31 +0800 Subject: [PATCH] cleanup code --- indextts/infer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indextts/infer.py b/indextts/infer.py index ff707f5..f67625e 100644 --- a/indextts/infer.py +++ b/indextts/infer.py @@ -201,10 +201,10 @@ class IndexTTS: torchaudio.save(output_path, wav.type(torch.int16), 24000) -prompt_wav="/juicefs/users/wd007/work2024/tts/indextts/testwav/spk_1743041132.wav" +prompt_wav="test_data/input.wav" text="晕 XUAN4 是 一 种 GAN3 觉" text='大家好,我现在正在bilibili 体验 ai 科技,说实话,来之前我绝对想不到!AI技术已经发展到这样匪夷所思的地步了!' + if __name__ == "__main__": tts = IndexTTS(cfg_path="checkpoints/config.yaml", model_dir="checkpoints") - #tts.infer(audio_prompt='test_data/input.wav', text='大家好,我现在正在bilibili 体验 ai 科技,说实话,来之前我绝对想不到!AI技术已经发展到这样匪夷所思的地步了!', output_path="gen.wav") tts.infer(audio_prompt=prompt_wav, text=text, output_path="gen.wav")