Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MeloTTS MS
|
| 2 |
+
|
| 3 |
+
MeloTTS continue train on MS, forked at https://github.com/mesolitica/MeloTTS-MS
|
| 4 |
+
|
| 5 |
+
**still on training**.
|
| 6 |
+
|
| 7 |
+
## requirements
|
| 8 |
+
|
| 9 |
+
```bash
|
| 10 |
+
pip3 install git+https://github.com/mesolitica/MeloTTS-MS
|
| 11 |
+
pip3 install git+https://github.com/mesolitica/malaya-speech malaya phonemizer
|
| 12 |
+
apt install espeak -y
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
## how to
|
| 16 |
+
|
| 17 |
+
```python
|
| 18 |
+
from huggingface_hub import snapshot_download
|
| 19 |
+
from from melo.api import TTS
|
| 20 |
+
|
| 21 |
+
ckpt_path = hf_hub_download(repo_id='mesolitica/MeloTTS-MS', filename='model.pth')
|
| 22 |
+
config_path = hf_hub_download(repo_id='mesolitica/MeloTTS-MS', filename='config.json')
|
| 23 |
+
model = TTS(language='MS', config_path=config_path, ckpt_path=ckpt_path)
|
| 24 |
+
|
| 25 |
+
speaker_id = {
|
| 26 |
+
'Husein': 0,
|
| 27 |
+
'Shafiqah Idayu': 1,
|
| 28 |
+
'Anwar Ibrahim': 2,
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
r = model.tts_to_file('Husein sangatlah comel dan wangi.', 0, split = True, sdp_ratio = 0, noise_scale = 0.667)
|
| 32 |
+
```
|
| 33 |
+
|