Text-to-Speech
Transformers.js
ONNX
Malay
style_text_to_speech_2
tts
webgpu
malay
bahasa-melayu
male-voice
tiny
Instructions to use Suarify/kecil-tts-michael-v0.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Suarify/kecil-tts-michael-v0.2 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-to-speech', 'Suarify/kecil-tts-michael-v0.2');
Download examples/python_example.py from Suarify/kecil-tts-michael-v0.2: direct link, hf CLI and curl.
- Browser
- Download file 529 Bytes
-
https://huggingface.co/Suarify/kecil-tts-michael-v0.2/resolve/main/examples/python_example.py
- Command line
-
hf download hf://Suarify/kecil-tts-michael-v0.2/examples/python_example.py
-
curl -L -o python_example.py https://huggingface.co/Suarify/kecil-tts-michael-v0.2/resolve/main/examples/python_example.py
529 Bytes
| """pip install onnxruntime numpy huggingface_hub soundfile | |
| pip install https://huggingface.co/Suarify/kecil-tts-michael-v0.2/resolve/main/dist/kecil_tts_8m-0.3.0-py3-none-any.whl""" | |
| import soundfile as sf | |
| from kecil_tts import SAMPLE_RATE, KecilTTS | |
| tts = KecilTTS.from_pretrained('Suarify/kecil-tts-michael-v0.2') # downloads the 8.5 MB int8 model once | |
| audio = tts('Selamat pagi, boleh saya bantu encik hari ini?') | |
| sf.write('hello.wav', audio, SAMPLE_RATE) | |
| print(tts.phonemize('Jumlah bayaran anda ialah RM1,250.50.')) | |