IndexTTS How to use IndexTeam/Index-TTS with IndexTTS:
# Download model
from huggingface_hub import snapshot_download
snapshot_download(IndexTeam/Index-TTS, local_dir="checkpoints")
from indextts.infer import IndexTTS
# Ensure config.yaml is present in the checkpoints directory
tts = IndexTTS(model_dir="checkpoints", cfg_path="checkpoints/config.yaml")
voice = "path/to/your/reference_voice.wav" # Path to the voice reference audio file
text = "Hello, how are you?"
output_path = "output_index.wav"
tts.infer(voice, text, output_path)