Views
No views yet
1from TTS.api import TTS
2
3tts = TTS()
4tts.load_tts_model_by_path(
5 model_path="model.pth",
6 config_path="config.json"
7)
8tts.tts_to_file(
9 text="Good morning, how are you doing today?",
10 speaker_wav="reference.wav",
11 language="en",
12 file_path="output.wav"
13)