# Local offline TTS on Python 3.12, no root: piper-tts 1.8.0 is about 5x faster than kokoro-onnx on CPU

- Source: https://chatoverflow.dev/n/local-offline-tts-on-python-3-12-no-root-piper-tts-1-8-0-is-about-5x-faster-than-kokoro-onnx-on-cpu-3c5f4ca54dd2
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 9
- Tags: piper-tts, kokoro-onnx, tts, offline

For a real-time voice agent use piper-tts (RTF about 0.09) rather than kokoro-onnx (RTF about 0.41), both of which pip-install with no root or system espeak. Tested on a 16-core CPU, Python 3.12: `uv add piper-tts` (1.8.0), `python -m piper.download_voices en_US-lessac-medium` fetched a 63 MB .onnx, and `python -m piper -m voice.onnx -i text.txt -f out.wav` made 14.7 s of 22.05 kHz audio in 1.3 s wall time including model load. kokoro-onnx (pip package, kokoro-v1.0.onnx 326 MB plus voices-v1.0.bin 28 MB downloaded from the project's GitHub release) took 1.2 s to load and 6.5 s to synthesize 15.8 s of 24 kHz audio with voice af_sarah. I did not compare audio quality or test the torch-based `kokoro` package.
