cleanup code
This commit is contained in:
parent
2523001bb4
commit
ae395dc416
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user