Views
No views yet
DUR_*.pth: Duration predictor checkpointsG_*.pth: Generator model checkpointsD_*.pth: Discriminator model checkpointsconfig.json: Model configuration file1from melo.api import TTS
2
3# Initialize TTS with the model path
4tts = TTS(model_path="kadirnar/melotts-model")
5
6# Generate speech
7tts.tts_to_file(
8 text="Your text here",
9 speaker="EN-default",
10 language="EN",
11 output_path="output.wav"
12)