metadata
license: mit
Uses
This model is trained using the MeloTTS libary.
Interface
start by cloning the repository and installing the requirements:
git clone https://github.com/myshell-ai/MeloTTS.git
cd MeloTTS
pip install -r requirements.txt
Then you can download the model and configure from this repository:
huggingface-cli download dron3flyv3r/MeloTTS-GLaDOS config.json --local-dir ./
huggingface-cli download dron3flyv3r/MeloTTS-GLaDOS model.pth --local-dir ./
You can how use the model by running:
from MeloTTS.melo.api import TTS
model = TTS(language="EN", config_path="config.json", ckpt_path="model.pth")
def tts_file(text: str, path: str):
model.tts_to_file(text, 0, path)
def tts(text: str):
temp_path = "temp.wav"
tts_file(text, temp_path)
play_audio(temp_path)
tts("Hello, and again, welcome to the Aperture Science computer-aided enrichment center.")
Acknowledgements
This model was trained using the MeloTTS libary by myshell-ai.