dron3flyv3r
commited on
Commit
•
e9480e8
1
Parent(s):
1331e6e
Update README.md with simplified usage instructions and repository link
Browse files
README.md
CHANGED
@@ -9,28 +9,21 @@ tags:
|
|
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/
|
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
|
32 |
|
33 |
-
model = TTS(
|
34 |
|
35 |
def tts_file(text: str, path: str):
|
36 |
model.tts_to_file(text, 0, path)
|
@@ -38,7 +31,6 @@ def tts_file(text: str, path: str):
|
|
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 |
```
|
|
|
9 |
---
|
10 |
|
11 |
## Uses
|
12 |
+
This model is trained using the [MeloTTS libary](https://github.com/myshell-ai/MeloTTS). To make it simpler to use, have I modified the original code and removed any unnecessary code. This code can be found in my [GitHub repository](https://github.com/dron3flyv3r/MeloTTS.git).
|
13 |
|
14 |
## Interface
|
15 |
start by cloning the repository and installing the requirements:
|
16 |
```bash
|
17 |
+
git clone https://github.com/dron3flyv3r/MeloTTS.git
|
|
|
18 |
pip install -r requirements.txt
|
19 |
```
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
You can how use the model by running:
|
23 |
```python
|
24 |
+
from melo.api import TTS
|
25 |
|
26 |
+
model = TTS("GLADOS")
|
27 |
|
28 |
def tts_file(text: str, path: str):
|
29 |
model.tts_to_file(text, 0, path)
|
|
|
31 |
def tts(text: str):
|
32 |
temp_path = "temp.wav"
|
33 |
tts_file(text, temp_path)
|
|
|
34 |
|
35 |
tts("Hello, and again, welcome to the Aperture Science computer-aided enrichment center.")
|
36 |
```
|