File size: 1,292 Bytes
eef6486 |
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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# Malay-TTS-Yasmin
All notebooks and code related at https://github.com/huseinzol05/malaya-speech/tree/master/data/azure-tts
## Attributes
### Wiki and News
- 24000 sample rate, super clean.
- narrator `ms-MY-YasminNeural`.
- approximate 99.4 hours.
- Texts from Malay Wikipedia and News.
- Sentences between 2 words and 20 words.
### Parliament
- 24000 sample rate, super clean.
- narrator `ms-MY-YasminNeural`.
- approximate 142 hours.
- Texts from Malaysia Malay Parliament.
- Sentences between 2 words and 25 words.
## how-to
### Wiki and News
1. Download [populated-text.json](populated-text.json) and [tts-malay-yasmin.tar.gz](tts-malay-yasmin.tar.gz).
2. To get wav and transcript,
```python
import json
import soundfile as sf
with open('populated-text.json') as fopen:
texts = json.load(fopen)
index = 0
text = texts[index]
y, sr = sf.read('female/{index}.wav')
```
### Parliament
1. Download [populated-parliament.json](populated-parliament.json) and [tts-malay-yasmin-parliament.tar.gz](tts-malay-yasmin-parliament.tar.gz).
2. To get wav and transcript,
```python
import json
import soundfile as sf
with open('populated-parliament.json') as fopen:
texts = json.load(fopen)
index = 0
text = texts[index]
y, sr = sf.read('female-parliament/{index}.wav')
``` |