dron3flyv3r commited on
Commit
1331e6e
·
verified ·
1 Parent(s): 13c43f7

Update README.md

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