Kecil-TTS Michael v0.2.2

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.

v0.2.2 has the same trained weights as v0.2 β€” only the synthesis (the ONNX export) changed. The export now: keeps the correct 128-harmonic bank his training used, places the breath noise between the harmonics instead of on top of them, gates the fast "burst" noise to unvoiced frames with a short hangover (consonants keep their bursts), clamps every phoneme to 75–200 ms (the duration model was giving some phonemes 25 ms and others 400 ms), smooths the noise gains over time, and adds a +3 dB air shelf above 6.5 kHz. Recognition accuracy is unchanged by construction (the text model is identical; only the timing clamp alters delivery, not words).

This is the male sibling of Kecil-TTS Yati v0.4.1 (female voice). Same size, same code, same Malay front end.

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.2.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.2")
sf.write("hello.wav", tts("Selamat pagi, boleh saya bantu encik hari ini?"), SAMPLE_RATE)

examples/ has Python, Node and streaming scripts (stream_python.py, stream_node.mjs); js/ is the transformers.js front end.

How good is it?

Quality was measured by playing the model's speech to Whisper large-v3 and comparing with the text (character error rate, CER; lower is better; no model scores 0 because the recogniser itself misreads some speech). The scores below were measured for v0.2, whose text model v0.2.2 shares exactly, so they carry over.

Sentences the model had not seen n Median CER Capped mean CER Share at or under 8%
Test sentences, every 5th row of the 200-sentence test set (all six categories) 40 6.2% 10.2% 57%
Held-out sentences from the training set 60 6.8% 12.9% 52%

For reference, the speech this model learned from scores 4.3% median CER on the held-out clips.

Listen to samples/ β€” all six were rendered by the v0.2.2 export itself.

What changed in v0.2.2

Nothing in the weights. The export was rebuilt from the v0.2 ONNX (the training checkpoints were not kept) and then:

  1. 128 harmonics β€” his training used 128 sine harmonics; a first re-export used the default 64 and lost the 7.7–11 kHz band, which is what made the voice muffled and watery.
  2. Noise between the harmonics β€” in voiced frames the breath noise is masked into the gaps between partials (energy preserved) instead of smearing over them.
  3. Burst path gated to unvoiced frames with a 22 ms hangover β€” consonant bursts are kept, the chopping that made voiced sound watery is gone.
  4. Phoneme durations clamped to 75–200 ms β€” the duration model was producing one-frame (25 ms) phonemes and 400 ms held vowels; both read as robotic. Long vowels on the stress still vary with the text.
  5. Noise gains smoothed over three frames (βˆ’60 ms) and a +3 dB linear-phase shelf above 6.5 kHz for the missing top octave.

Limitations (read before using)

  • Error rate: 43% of the test sentences scored above 8% CER (a wrong or missing word or more); names, numbers, English words and long sentences are the weak spots. The female Yati model is more accurate.
  • Sound quality: better than v0.2 (brighter, less watery, less robotic), but still synthetic; the damp timbre comes from the training audio, which was voice-converted twice.
  • Timing is clamped: no phoneme is shorter than 75 ms, so fast speech is slightly slower than v0.2; use speed to compensate.
  • One synthetic male voice, no emotion or style control. Some sentences sound slightly American-accented.
  • Trained on a small set: about 49 minutes of synthetic Malay speech (Chatterbox Multilingual, voice-converted twice: once to a female voice, then to the male voice).
  • Written for short sentences. Long text is split at sentence ends; the Python and JS front ends also support streaming.
  • It is synthetic speech. Please say so when you use it.

How it was made

  1. A rule-based Malay front end (kecil_tts/, ported line for line to js/) writes Malay as phonemes in the 178-symbol vocabulary of Kokoro-82M.
  2. About 750 Malay sentences were turned into speech with Chatterbox Multilingual and voice-converted to the male voice using a reference read by Kokoro am_michael. Audio after the last aligned word is cut.
  3. The 8M-parameter architecture and training recipe are those of Paradee-8M, starting from its male US voice row; under one hour on one T4 GPU.
  4. Weights were exported to ONNX (opset 17) with int8 weights and made WebGPU-safe.

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
89
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Suarify/kecil-tts-michael-v0.2.2

Quantized
(19)
this model