File size: 1,248 Bytes
66b7b56
 
 
0f92166
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---

license: mit
---


## Uses
This model is trained using the [MeloTTS libary](https://github.com/myshell-ai/MeloTTS).

## Interface
start by cloning the repository and installing the requirements:
```bash

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:
<!-- Show how to download the files from a hugginface repo -->
```bash

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:
```python

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](https://github.com/myshell-ai/MeloTTS) by [myshell-ai](https://github.com/myshell-ai/MeloTTS).