Chotu TTS v0.2 puts eight English voices in 0.91 MB and speaks in 11 ms.
You can run Chotu TTS v0.2 offline on a laptop CPU or inside a browser tab with zero cloud calls. This new release packs 835,728 parameters, eight 896-byte voices, and a 24 kHz DSP vocoder into a single ONNX file (chotu_tts_v0_2_int8_all.onnx). It scores 4.255 UTMOS and synthesizes speech at 120x real-time.
933 KB): One INT8 ONNX file holds the whole pipeline. Your users download less than half the size of Chotu TTS v0.1.onnxruntime-web (WASM) or native ONNX Runtime on CPU without a GPU.Need raw speed or full precision? Start with
chotu_tts_v0_2_int8_all.onnx(0.91 MB). Pickchotu_tts_v0_2_int8_mm.onnx(2.33 MB) for 7 ms TTFA and 120x real-time peak speed, orchotu_tts_v0_2_fp32.onnx(3.30 MB) for full FP32 weights.
Chotu TTS v0.2 cuts file size from under 2 MB to 0.91 MB, drops first-audio latency from 30 ms to 11 ms, and expands from 1 voice to 8.
| Spec | Chotu TTS v0.1 | Chotu TTS v0.2 | Gain |
|---|---|---|---|
| Flagship Size | <2.0 MB |
0.91 MB (933 KB) |
Over 2x smaller |
| Parameters | ~2M |
0.836M |
2.4x fewer parameters |
| First Audio (TTFA) | 30 ms |
~11 ms |
2.7x faster start |
| Speed | 80x RT |
~120x RT |
1.5x higher throughput |
| Voices | 1 voice |
8 voices (896 B each) |
Multi-voice + blending |
| Vocoder | Neural ConvNeXt | Lightweight DSP Vocoder | Smaller and faster |
| Audio Quality | N/A | 4.255 UTMOS |
24 kHz PCM audio |
We generated these four 24 kHz clips with chotu_tts_v0_2_int8_all.onnx on CPU:
| Sample | Voice | Text | Audio |
|---|---|---|---|
| Intro | af_heart |
"Hi, I am Chotu version zero point two, a sub one megabyte voice model streaming right in your browser." | |
| Latency | am_michael |
"With eleven millisecond first audio latency and one hundred twenty x real time speed, Chotu speaks on a single CPU with zero cloud calls." | |
| British | bf_emma |
"Eight distinct voices, each under one kilobyte, powered by a pure differentiable DSP vocoder." | |
| Edge | bm_lewis |
"Built for offline edge devices and real time voice agents, Chotu runs anywhere ONNX runs." |
Chotu TTS v0.2 gives you three ONNX builds: a 0.91 MB Sub-1 MB flagship, a 2.33 MB Fast INT8 build hitting 7 ms TTFA and 120x real-time, and a 3.30 MB FP32 reference.
| Property | Value |
|---|---|
| Flagship File | 0.91 MB (chotu_tts_v0_2_int8_all.onnx) |
| Parameters | 0.836M (835,728) |
| Sample Rate | 24000 Hz (16-bit mono PCM) |
| First Audio (TTFA) | ~11 ms (7 to 12 ms) |
| Throughput | ~120x real-time |
| Audio Quality | 4.255 UTMOS |
| Voices | 8 built-in (896 B each) |
| License | Apache 2.0 |
voices/*.bin)Each voice is an 896-byte binary file (224 float32 values). Load one on demand or average two files to create a custom blend:
af_heart, af_bella, af_nicoleam_adam, am_fenrir, am_michaelbf_emmabm_lewisChotu TTS v0.2 runs the encoder, streaming decoder, and DSP vocoder inside one 0.91 MB ONNX graph so speech streams with zero gaps.
You feed phoneme IDs and an 896-byte voice file into the ONNX session. The model outputs a 24 kHz audio chunk along with small state tensors that you pass into the next step.
Streaming ONNX I/O (12 Inputs, 10 Outputs)Inputs (12)
| Tensor | Type | Shape | Description |
|---|---|---|---|
phoneme_chunk |
int64 |
[1, C] |
Phoneme token IDs from vocab.json |
voice_vec |
float32 |
[1, 224] |
Voice vector from voices/<name>.bin |
commit_len |
int64 |
[1] |
Number of tokens to emit in this step |
enc_kv |
float32 |
[4, 2, 1, 4, 24, 24] |
Encoder state cache |
dec_kv |
float32 |
[4, 2, 1, 4, 32, 32] |
Decoder state cache |
enc_pos |
int64 |
[1] |
Encoder position counter |
dec_pos |
int64 |
[1] |
Decoder position counter |
stem_buf |
float32 |
[1, 75, 3] |
Stem streaming buffer |
conv_buf |
float32 |
[1, 120, 48] |
Decoder streaming buffer |
phase_state |
float32 |
[1] |
Harmonic phase state |
ola_tail |
float32 |
[1, 300] |
Audio overlap tail |
noise_pos |
int64 |
[1] |
Noise generator cursor |
Outputs (10)
| Tensor | Type | Shape | Description |
|---|---|---|---|
audio_chunk |
float32 |
[1, N] |
24 kHz mono PCM audio chunk |
new_enc_kv |
float32 |
[4, 2, 1, 4, 24, 24] |
Updated encoder cache |
new_dec_kv |
float32 |
[4, 2, 1, 4, 32, 32] |
Updated decoder cache |
new_enc_pos |
int64 |
[1] |
Updated encoder position |
new_dec_pos |
int64 |
[1] |
Updated decoder position |
new_stem_buf |
float32 |
[1, 75, 3] |
Updated stem buffer |
new_conv_buf |
float32 |
[1, 120, 48] |
Updated decoder buffer |
new_phase_state |
float32 |
[1] |
Updated phase state |
new_ola_tail |
float32 |
[1, 300] |
Updated overlap tail |
new_noise_pos |
int64 |
[1] |
Updated noise cursor |
import json
import numpy as np
import onnxruntime as ort
import soundfile as sf
sess = ort.InferenceSession("chotu_tts_v0_2_int8_all.onnx", providers=["CPUExecutionProvider"])
vocab = json.load(open("vocab.json", encoding="utf-8"))
voice = np.fromfile("voices/af_heart.bin", dtype=np.float32).reshape(1, 224)
# Kokoro-compatible IPA phonemes
ipa = "hˈaɪ, ˈaɪ æm ʧˈOtu."
ids = [vocab[c] for c in ipa if c in vocab]
state_names = [
"enc_kv", "dec_kv", "enc_pos", "dec_pos",
"stem_buf", "conv_buf", "phase_state", "ola_tail", "noise_pos",
]
states = {
"enc_kv": np.zeros((4, 2, 1, 4, 24, 24), np.float32),
"dec_kv": np.zeros((4, 2, 1, 4, 32, 32), np.float32),
"enc_pos": np.zeros((1,), np.int64),
"dec_pos": np.zeros((1,), np.int64),
"stem_buf": np.zeros((1, 75, 3), np.float32),
"conv_buf": np.zeros((1, 120, 48), np.float32),
"phase_state": np.zeros((1,), np.float32),
"ola_tail": np.zeros((1, 300), np.float32),
"noise_pos": np.zeros((1,), np.int64),
}
chunks, pos, idx = [], 0, 0
while pos < len(ids):
commit = min(4 if idx == 0 else 64, len(ids) - pos)
lookahead = 4 if idx == 0 else 8
chunk_ids = np.array([ids[pos : min(len(ids), pos + commit + lookahead)]], dtype=np.int64)
out = sess.run(None, {
"phoneme_chunk": chunk_ids,
"voice_vec": voice,
"commit_len": np.array([commit], dtype=np.int64),
**states,
})
chunks.append(out[0].reshape(-1))
states = dict(zip(state_names, out[1:]))
pos += commit
idx += 1
sf.write("out.wav", np.concatenate(chunks), 24000)
chotu_tts_v0_2_fp32.onnx 3 MiBchotu_tts_v0_2_int8_mm.onnx 2 MiBchotu_tts_v0_2_int8_all.onnx 931.2 KiBvoices/af_bella.bin 0.9 KiBvoices/af_heart.bin 0.9 KiBvoices/af_nicole.bin 0.9 KiBvoices/am_adam.bin 0.9 KiBvoices/am_fenrir.bin 0.9 KiBvoices/am_michael.bin 0.9 KiBvoices/bf_emma.bin 0.9 KiBvoices/bm_lewis.bin 0.9 KiBhexgrad/Kokoro-82M