Repository navigation
sanoTTS heart-nano at about 300× real time on a Raspberry Pi 400, plus a benchmark script anyone can run #1395
tarelerulz
started this conversation in
Show and tell
Replies: 1 comment
|
Nice work! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've been running the sanoTTS heart-nano voice on audio.cpp on a Raspberry Pi 400 (4 × Cortex-A72, no GPU). I built a faster CPU version of the same voice (hn-fast) and want to share the numbers, and ask for results from other hardware.
Result: the full Wikipedia "Apollo 11" article (13,151 words, 91 min 57 s of speech) takes roughly 17–19 s in one process, about 300× real time, including saving the 265 MB WAV file. I measured three runs: 16.9 s, 18.3 s and 18.6 s.
Same Pi, same texts, one-shot
audiocpp_clivs hn-fast, 4 threads, nano model:94d78026)The full Apollo article took 47.8 s on audio.cpp main and 80.8 s on an older Sep 2026 build.
Where the time goes in main: with
--log, the host iSTFT was about half of the synthesis time once the NEON decoder is used. About half of that was allocating and zeroing work buffers on every call. I sent a NEON iSTFT as PR #1394. It makes the long text 1.36× faster on main (418 → 307 ms), and the output stays within 1 LSB of the host iSTFT.What hn-fast does beyond that: a fused NEON decoder and inverse FFT, a NEON front end, a persistent thread pool and direct WAV output. The output differs from stock by at most 1 LSB in 16-bit audio. I haven't compared it by ear.
Check it yourself:
Limits and a request: I tested only the Pi 400 and only heart-nano (not heart). The kernels are tuned for Cortex-A72. If you run
tts_bench.pyon Apple silicon, a Pi 5 or anything else, please post the JSON.Written with help from Claude; the measurements are from my own Pi 400.
All reactions