Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- tts_models = [
- "tts_models/en/ek1/tacotron2",
- "tts_models/en/ljspeech/tacotron2-DDC",
- "tts_models/en/ljspeech/tacotron2-DDC_ph",
- "tts_models/en/ljspeech/glow-tts",
- "tts_models/en/ljspeech/speedy-speech",
- "tts_models/en/ljspeech/tacotron2-DCA",
- "tts_models/en/ljspeech/vits",
- "tts_models/en/ljspeech/vits--neon",
- "tts_models/en/ljspeech/fast_pitch",
- "tts_models/en/ljspeech/overflow",
- "tts_models/en/vctk/vits",
- "tts_models/en/vctk/fast_pitch",
- "tts_models/en/sam/tacotron-DDC",
- "tts_models/en/blizzard2013/capacitron-t2-c50",
- "tts_models/en/blizzard2013/capacitron-t2-c150_v2",
- ]
- vocoder_models = [
- "vocoder_models/universal/libri-tts/wavegrad",
- "vocoder_models/universal/libri-tts/fullband-melgan",
- "vocoder_models/en/ek1/wavegrad",
- "vocoder_models/en/ljspeech/multiband-melgan",
- "vocoder_models/en/ljspeech/hifigan_v2",
- "vocoder_models/en/ljspeech/univnet",
- "vocoder_models/en/blizzard2013/hifigan_v2",
- "vocoder_models/en/vctk/hifigan_v2",
- "vocoder_models/en/sam/hifigan_v2",
- ]
- test_text = "Who’s there? Artyom - go have a look!"
- for model_index, model in enumerate(tts_models):
- model_name = model.split("/")[-1]
- os.system(f'tts --model_name "{model}" --text "{test_text}" --out_path "{model_name}".wav')
- for vocoder_index, vocoder in enumerate(vocoder_models):
- vocoder_name = vocoder.split("/")[-1]
- output_name = f"{model_name} + {vocoder_name}"
- os.system(f'tts --model_name "{model}" --vocoder_name "{vocoder}" --text "{test_text}" --out_path "{output_name}".wav')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement