dron3flyv3r
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -1,41 +1,47 @@
|
|
1 |
-
---
|
2 |
-
license: mit
|
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 |
This model was trained using the [MeloTTS libary](https://github.com/myshell-ai/MeloTTS) by [myshell-ai](https://github.com/myshell-ai/MeloTTS).
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
pipeline_tag: text-to-speech
|
6 |
+
tags:
|
7 |
+
- MeloTTS
|
8 |
+
- TTS
|
9 |
+
---
|
10 |
+
|
11 |
+
## Uses
|
12 |
+
This model is trained using the [MeloTTS libary](https://github.com/myshell-ai/MeloTTS).
|
13 |
+
|
14 |
+
## Interface
|
15 |
+
start by cloning the repository and installing the requirements:
|
16 |
+
```bash
|
17 |
+
git clone https://github.com/myshell-ai/MeloTTS.git
|
18 |
+
cd MeloTTS
|
19 |
+
pip install -r requirements.txt
|
20 |
+
```
|
21 |
+
|
22 |
+
Then you can download the model and configure from this repository:
|
23 |
+
<!-- Show how to download the files from a hugginface repo -->
|
24 |
+
```bash
|
25 |
+
huggingface-cli download dron3flyv3r/MeloTTS-GLaDOS config.json --local-dir ./
|
26 |
+
huggingface-cli download dron3flyv3r/MeloTTS-GLaDOS checkpoint.pth --local-dir ./
|
27 |
+
```
|
28 |
+
|
29 |
+
You can how use the model by running:
|
30 |
+
```python
|
31 |
+
from MeloTTS.melo.api import TTS
|
32 |
+
|
33 |
+
model = TTS(language="EN", config_path="config.json", ckpt_path="checkpoint.pth")
|
34 |
+
|
35 |
+
def tts_file(text: str, path: str):
|
36 |
+
model.tts_to_file(text, 0, path)
|
37 |
+
|
38 |
+
def tts(text: str):
|
39 |
+
temp_path = "temp.wav"
|
40 |
+
tts_file(text, temp_path)
|
41 |
+
play_audio(temp_path)
|
42 |
+
|
43 |
+
tts("Hello, and again, welcome to the Aperture Science computer-aided enrichment center.")
|
44 |
+
```
|
45 |
+
|
46 |
+
## Acknowledgements
|
47 |
This model was trained using the [MeloTTS libary](https://github.com/myshell-ai/MeloTTS) by [myshell-ai](https://github.com/myshell-ai/MeloTTS).
|