Instructions to use Suarify/kecil-tts-michael-v0.3.0 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.3.0 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.3.0');
Kecil-TTS Michael v0.3.0
A Malay text-to-speech model with a male voice, 8.5 MB. One ONNX file, one voice (close to Kokoro's am_michael), runs in a browser tab (transformers.js, WebGPU or WASM) or on one CPU thread in Python. Nothing leaves the device.
v0.3.0 is the first version exported from the true training checkpoints (previous files were rebuilt from the int8 ONNX, which cost precision and distorted the timing), and it continues training on the full 1,261-clip set: decoder +4,000 steps (16,000 total), text side +4,500 steps.
This is the male sibling of Kecil-TTS Yati v0.4.1 (female voice).
| Model file | onnx/model_quantized.onnx, 8.47 MB (int8 weights) |
| Parameters | 7.9 M |
| Output | 24 kHz mono |
| Language | Bahasa Melayu (Malaysia), with common English words used in Malaysian speech |
| Inputs | input_ids (int64 [1,T]) and speed (float32 [1]) |
Quick start
pip install onnxruntime numpy huggingface_hub soundfile
pip install https://huggingface.co/Suarify/kecil-tts-michael-v0.3.0/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.3.0")
sf.write("hello.wav", tts("Selamat pagi, boleh saya bantu encik hari ini?"), SAMPLE_RATE)
Browser or Node: see the web Space and examples/ (stream_python.py, stream_node.mjs).
Benchmarks
Recognition (Whisper large-v3, character error rate; lower is better)
Measured on the weights this version continues from (the C4 checkpoint); the exact v0.3.0 weights have not been re-scored yet as of 2026-11-17 β the text model only continued training, so the numbers are expected to stay in this range.
| Model | Test set (200 sentences) | Held-out (60 sentences) | Share β€ 8% CER (test) |
|---|---|---|---|
| Michael v0.2 (before the C4 data) | 8.7% / 14.3% | 7.1% / 14.3% | 49% |
| Michael C4 β v0.3.0 | 6.9% / 10.6% | 2.2% / 8.2% | 55% |
| Yati v0.4 (female, for reference) | 5.5% / 9.5% | 4.8% / 8.5% | 68% |
Median / capped-mean. The recogniser itself misreads about 9% of the characters of the training clips, so no model scores 0.
Sound texture (same 6 sentences, this release session)
| Metric | Chatterbox reference targets | Yati v0.4.1 | Michael v0.2.2 | Michael v0.3.0 |
|---|---|---|---|---|
| Periodicity (pitch clarity) | 0.699 | 0.751 | 0.634 | 0.662 |
| Spectral flatness 2β6 kHz | 0.621 | 0.597 | 0.470 | 0.440 |
| Energy share above 4 kHz | 0.080 | 0.025 | 0.095 | 0.091 |
| Energy share above 7 kHz | β | 0.003 | 0.043 | 0.043 |
Michael is brighter and more articulate than Yati (more high-frequency and consonant energy) but less periodic β his training audio was voice-converted twice, Yati's once. That is the remaining timbre gap.
Size, speed, cost, offline
| Michael v0.3.0 | Yati v0.4.1 | |
|---|---|---|
| Model file | 8.47 MB | 8.46 MB |
| Parameters | 7.9 M | 7.9 M |
| CPU speed (1 onnxruntime thread) | ~19Γ real time | ~21Γ real time |
| Browser speed (transformers.js, WebGPU) | ~4.5Γ real time | ~4β5Γ real time |
| First load in the browser | ~7β10 s (cached afterwards) | ~7β10 s |
| GPU training cost (this version) | ~15 min T4 for the +4,000/+4,500 continuation; 12,000/7,500-step base run β 35 min | ~60 min T4 for the base run |
| Inference cost | RM 0 β no server, no API | RM 0 |
| Offline | yes β one file, works with no internet in Python/Node; the browser version caches after first load | yes |
What changed in v0.3.0
- Exported from the true checkpoints (full precision) instead of the int8 ONNX rebuild β this alone fixes the distorted timing: the real text model gives 1β8 frame phonemes, while the rebuilt one produced 16-frame (400 ms) held vowels.
- +4,000 decoder steps and +4,500 text steps on the merged 1,261-clip set (held spectral loss 2.545 β 2.497).
- Timing clamp 75β200 ms per phoneme β keeps single-frame phonemes from being clipped.
- Sound path unchanged from v0.2.2: 128 harmonics, breath noise masked between partials, 22 ms burst hangover for consonants, 3-frame noise-gain smoothing, +3 dB air shelf above 6.5 kHz.
Limitations
- Timing is clamped, so very short phonemes last 75 ms; use
speedfor a faster delivery. - English words and long sentences are the weak spots (see CER table).
- Timbre still carries the double voice-conversion character of the training audio (slightly damp on long vowels).
- One synthetic male voice, no emotion or style control.
- It is synthetic speech. Please say so when you use it.
How it was made
- Rule-based Malay front end (
kecil_tts/, ported tojs/) β phonemes in the 178-symbol Kokoro vocabulary. - 1,261 Malay clips (87 minutes) generated with Chatterbox Multilingual and voice-converted to the male voice; 767 of them regenerated twice with CER-based selection.
- Paradee-8M student trained on a T4: decoder 16,000 steps (continued from the Yati v0.4 decoder), text side ~8,000 effective steps with duration + recognition checkpoint selection.
- Exported to ONNX (opset 17), int8 weights, WebGPU-safe (no float64 operators).
License and credits
Code and weights: Apache-2.0. kecil_tts/lexicon_e.json and js/g2p/lexicon_e.json are derived from Wiktionary data and are CC BY-SA 4.0. See NOTICE: Paradee-8M (Sahil Mahendrakar), Kokoro-82M (hexgrad), Chatterbox Multilingual (Resemble AI), misaki, WikiPron, g2p-id, Tatoeba and Malay Wikipedia.
- Downloads last month
- 91
Model tree for Suarify/kecil-tts-michael-v0.3.0
Base model
yl4579/StyleTTS2-LJSpeech