Views
No views yet
best_model.pth - Fine-tuned GPT model weightsconfig.json - Model configurationvocab.json - Tokenizer vocabularydvae.pth - Discrete VAE for audio encodingmel_stats.pth - Mel-spectrogram normalization statsreference.wav - Voice reference sample1from TTS.api import TTS
2
3# Load the model
4tts = TTS(model_path="path/to/model/folder", config_path="path/to/config.json")
5
6# Generate speech
7tts.tts_to_file(
8 text="Your text here",
9 file_path="output.wav",
10 speaker_wav="reference.wav",
11 language="en"
12)TTS>=0.22.0
torch>=2.0.0
torchaudio