Small CPU text-to-speech models compared: Piper, Kokoro, pocket-tts and Linnet on one core
If you need speech in a product without a GPU and without a cloud round trip, there are now several small models to choose from, and their trade-offs are different enough that "which is best" has no single answer. This post measures four of them on the same CPU with the same texts and the same script, and lets you listen to the same sentence from each. We make one of the four (Linnet), so read the numbers with that in mind; everything here can be reproduced with the script linked at the end.
What is measured: speed, latency to first audio, memory and file size. What is not measured: quality. Listen to the samples and judge that yourself.
The models
| model | what it is | languages | params | weights | voice cloning | streaming |
|---|---|---|---|---|---|---|
Piper en_US-ljspeech-medium / -high |
VITS, one ONNX model per voice | one model per voice, many languages | 16 M / 28 M | 64 / 114 MB | no | per sentence |
| Kokoro-82M v1.0 | StyleTTS2-based, ONNX | 8 languages in one model | 82 M (81 M counted in the ONNX) | 326 MB + 28 MB voices | no | whole utterance per call |
| pocket-tts 4.0.1 | autoregressive, PyTorch, voice prompts | 7 languages in the 4.0.1 package (6 on the model card), one model each; English measured | 100 M | 236 MB | yes | every 80 ms |
Linnet linnet-en-35m |
autoregressive flow LM over a continuous-latent codec, Rust runtime | English | 41 M | 83 MB | yes | every 80 ms |
"Streaming" here means whether the package hands you audio before the utterance is finished. Piper returns one chunk per
sentence; kokoro-onnx returned the whole utterance as one chunk (its create_stream API was used, and yielded a single
chunk in this setup); pocket-tts and Linnet emit a chunk every 80 ms of speech.
Method
- Machine: Intel Core i9-13900K, Linux (WSL2). Each process is pinned with
tasksetto performance cores: one core for the 1-thread runs, four cores for the 4-thread runs. pocket-tts uses one torch thread plus its own decoder thread by design, so its "1 thread" row runs on two cores and is marked as such. - Each model runs through its published Python package:
piper-tts1.8.0,kokoro-onnx0.6.1 (fp32 model; the int8 one was slower on this CPU),pocket-tts4.0.1,linnet-tts0.1.1. - Three English texts of 44, 99 and 321 characters (about 2.6, 5.4 and 17 s of speech). One warm-up run, then the median of three runs.
- RTF = wall-clock generation time / audio duration, summed over the three texts, including text processing, the Python loop and, for Linnet, the prime pass (pocket-tts's voice conditioning runs once per voice, outside the timed region). Lower is better; 10 % means ten times faster than real time.
- First audio = time from the call to the first chunk, for the shortest and the longest text, at one thread.
- Peak RSS = maximum resident memory of the Python process, interpreter and framework included (MiB, from
ru_maxrss). - File sizes are decimal megabytes.
Results
| model | RTF, 1 thread | RTF, 4 threads | first audio (short / long text) | peak RSS |
|---|---|---|---|---|
Piper en_US-ljspeech-medium |
5.8 % | 2.1 % | 180 / 283 ms | 503 MB |
Piper en_US-ljspeech-high |
42.5 % | 12.4 % | 1.4 / 2.1 s | 639 MB |
| Kokoro-82M (fp32) | 51.7 % | 17.2 % | 1.5 / 9.6 s | 1246 MB |
| pocket-tts 4.0.1 | 23.8 % (2 cores) | 24.1 % | 71 / 82 ms | 968 MB |
Linnet linnet-en-35m (fp16) |
10.6 % | 3.4 % | 87 / 133 ms | 187 MB |
Some things the table says:
- Piper medium is the cheapest model here by a wide margin: 16 M parameters, 64 MB, 6 % of real time on one core. If you
need one fixed voice per language and can wait for a sentence to finish before it plays, it is hard to beat. The
highvariant is seven times slower for the same voice. - Kokoro is the most expensive per sentence on a CPU, and its latency grows with the text because it synthesises the whole utterance before returning: 9.6 s for a 17-second paragraph. Splitting text into sentences on the caller's side brings the first audio down to roughly the short-text figure. In exchange it covers eight languages from one model, with 54 voices.
- pocket-tts and Linnet are the two streaming models with voice prompts. pocket-tts gets its first audio out slightly earlier (71 vs 87 ms) because its voice state is computed once per voice; Linnet re-reads the voice prompt in the prime pass of each session. Linnet costs about 2.2× less generation time (on one core instead of two) and five times less memory, most of which is the difference between a Rust runtime with its own kernels and PyTorch.
- Four threads help Kokoro (3×) and Piper high (3.4×) most, because their work is a few large operators. Piper medium gains 2.8×; the 80 ms-step models have less to parallelise per step (Linnet 3.1×, pocket-tts none by design).
Listen
The same sentence from every system, with each package's default parameters and a stock voice. Licences of the samples:
Piper LJSpeech voice (trained on the public-domain LJSpeech dataset; the piper-voices repository is MIT), Kokoro (Apache-2.0),
pocket-tts alba voice (CC BY 4.0), Linnet (Linnet Weights License; sample published by the licensor).
Good morning, and welcome back. The meeting starts at nine, and the coffee is already on the table.
| system | audio |
|---|---|
Piper en_US-ljspeech-medium |
|
Piper en_US-ljspeech-high |
|
Kokoro-82M, af_heart |
|
pocket-tts, alba |
|
Linnet, linnet-en-f1 |
The same five samples sit side by side in the "Compare with other CPU TTS models" tab of the Linnet demo Space, where you can also type your own text for Linnet.
What this does not tell you
- Quality. No MOS, no similarity scores. The samples above are the whole of the evidence in this post.
- Phones and boards. These are desktop-core numbers. Linnet's per-step times elsewhere (iPhone 13 Pro Max 5.5 ms, iPhone 11 7 ms, Snapdragon 662 14 ms and Raspberry Pi Zero 2 W 59–60 ms, the last two on four cores, all per 80 ms step) are in its README; we did not run the other models there, so there is no comparison.
- Other languages. All three texts are English. Kokoro, pocket-tts and Piper cover other languages; Linnet does not.
- Licences. They differ: the current
piper-ttspackage is GPL-3.0-or-later with per-voice licences for the voices (LJSpeech is public domain); Kokoro-82M is Apache-2.0; pocket-tts weights are CC BY 4.0; Linnet's code is Apache-2.0 and its weights are under the Linnet Weights License (free to use in your own products, commercial included; custom voices, fine-tuning, training models on the weights or their outputs, and general-purpose TTS services need a separate licence). Check each model's card before shipping.
Reproduce
Everything is in the LinnetTTS repository.
docs/benchmarks.md lists the shell steps: one virtual
environment with the four packages, the model downloads (the pocket-tts weights are behind a gate on the Hub, accept its terms
first), and the taskset pinning. tools/bench_cpu_tts.py
runs one model at one thread count over the three texts and prints a JSON line with the timings and peak RSS; the table is
assembled from those lines. If you run it on a different CPU and get a different ordering, we would like to see the numbers.