MeloTTS is a
high-quality multi-lingual text-to-speech library by
MyShell.ai. Supported languages include:
An unofficial
live demo is hosted on Hugging Face Spaces.
There are hundreds of TTS models on MyShell, much more than MeloTTS. See examples
here.
More can be found at the widget center of
MyShell.ai.
Follow the installation steps
here before using the following snippet:
1from melo.api import TTS
2
3# Speed is adjustable
4speed = 1.0
5device = 'cpu' # or cuda:0
6
7text = "彼は毎朝ジョギングをして体を健康に保っています。"
8model = TTS(language='JP', device=device)
9speaker_ids = model.hps.data.spk2id
10
11output_path = 'jp.wav'
12model.tts_to_file(text, speaker_ids['JP'], output_path, speed=speed)
We are actively sponsoring open-source AI projects. The sponsorship includes GPU resources, fundings and intellectual support (collaboration with top research labs). We welcome both reseach and engineering projects, as long as the open-source community needs them. Please contact
Zengyi Qin if you are interested.
If you find this work useful, please consider contributing to the GitHub
repo.
This library is under MIT License, which means it is free for both commercial and non-commercial use.
This implementation is based on
TTS,
VITS,
VITS2 and
Bert-VITS2. We appreciate their awesome work.