How to use 2Noise/ChatTTS with ChatTTS:
import ChatTTS import torchaudio chat = ChatTTS.Chat() chat.load_models(compile=False) # Set to True for better performance texts = ["PUT YOUR TEXT HERE",] wavs = chat.infer(texts, ) torchaudio.save("output1.wav", torch.from_numpy(wavs[0]), 24000)
torch是2.8dev,报错OSError: [WinError 127] 找不到指定的程序。
这是文件不存在的错误,你要是不会自己搞建议用这个整合包https://github.com/lenML/Speech-AI-Forge
· Sign up or log in to comment