Small TTS in the browser: cold starts, memory and a ticket test
- benchmark
- comparison
- browser
- offline-tts
A station announcement gives a speech engine three chances to make a consequential mistake in seven seconds. Which platform? What time? How much do two tickets cost? We typed the same announcement into the browser, exported the audio, and checked which facts survived a second machine transcribing it. We also timed a simpler sentence before and after each engine had loaded. Those two tests answer different questions for someone choosing a voice for a reader or a kiosk.
Six clicks per compact voice
We used the actual model picker, text field, Generate speech button and WAV download in the Small TTS workspace. Each configuration started in a new headless Chrome 158 profile on an Apple M1 Pro with 16 GiB of unified memory. The site was served over localhost. The model files and external runtimes still came from their configured hosts. Each configuration had its own profile and worker. Within a run the worker stayed alive and the model stayed selected.
| Click | Text entered verbatim | Question |
|---|---|---|
| 1 | The next train leaves at noon. Please meet me at the station. | How long until the first complete WAV is ready in a fresh profile? |
| 2–4 | Same text, three times | How long does the same request take with the engine already loaded? |
| 5 | Before we start the review, let me summarize the main points from our meeting. The team agreed to move the release by one week. We will test on slower devices and collect feedback. | Can the app export a full 180-character input at its current limit? |
| 6 | Platform four. The train leaves at 6:05. Two tickets cost $15.50. | Can a listener recover the platform, departure and fare? |
The clock ran from clicking Generate until the page made a new WAV available. First use includes network transfers, runtime startup, text preparation, synthesis and export. A browser that already has the assets in its HTTP cache could give a different first result. The repeat statistic is the middle of three button-to-WAV times. Background trials shared the machine and network. Treat close timings as ties. A streaming reader that starts playing before the whole clip exists would need a different latency test.
We read the sample rate and frame count from the downloaded PCM and checked that each successful file had a nonzero signal. Audio duration is frame count divided by sample rate. A warm result of half a second for four seconds of audio means about eight seconds of generated speech per second of waiting. Duration and signal level alone cannot tell you whether the words are right.
What fits in a gigabyte?
The inclusion limit in this test was 1,000 MB of sampled renderer resident memory. We collected renderer process IDs from Chrome’s debugging interface and summed their RSS from the operating system while the tab loaded and spoke. A dedicated worker belongs to a renderer. Sampling paused for 70 ms between passes, so a shorter spike can escape observation. Summing RSS can also count shared resident pages more than once. The data include the whole isolated Chrome instance as a separate column because a machine with only 1 GB of physical memory must also run the browser and operating system.
There is a practical reason for measuring the entire operation. An early integration of Paradee reached 1,260 MB across the renderers on a short greeting followed by the meeting text. After switching to single-threaded WASM and bounding each inference, the same two inputs peaked at 923 MB. The engine generated an 11.98-second meeting clip in that run. Its weight file did not change. The app now splits long input into pieces of up to 55 characters at punctuation or word boundaries and joins the resulting PCM. This limits intermediate allocations, but a reader may hear a change in phrasing at a join.
Results from 19 compact configurations
Each row represents six successful generations. The meeting column gives wait / audio duration in seconds. Memory gives renderer / whole Chrome in decimal MB. The ticket score counts the platform, departure time and fare recovered by an independent English recognizer. Every recording in the last column uses the identical ticket script. The raw file includes each repeat, duration, sample rate, signal level, WAV hash and ticket transcript. Download the measurement data
| Configuration | First WAV (s) | Warm median (s) | Meeting wait / audio (s) | Peak RSS (MB) | Ticket facts and audio |
|---|---|---|---|---|---|
| SmollerTTS | 51.4 | 0.47 | 1.23 / 11.96 | 641 / 1050 | 3/3 · WAV |
| Kale Nano | 76.9 | 0.16 | 0.42 / 11.71 | 590 / 1004 | 3/3 · WAV |
| Kale Tiny | 92.5 | 0.34 | 0.88 / 11.71 | 651 / 964 | 3/3 · WAV |
| Phonon 31M | 67.1 | 1.09 | 2.88 / 11.84 | 624 / 1038 | 3/3 · WAV |
| PiVo 1.4M | 18.3 | 0.23 | 0.66 / 9.41 | 713 / 1101 | 2/3 · WAV |
| Paradee 8M | 40.7 | 0.30 | 0.82 / 11.97 | 719 / 1132 | 2/3 · WAV |
| Klein X1.5 Pro | 62.2 | 0.72 | 2.00 / 11.78 | 754 / 1140 | 2/3 · WAV |
| tiny-voca | 35.7 | 0.13 | 0.38 / 10.41 | 732 / 1164 | 3/3 · WAV |
| Mithi Tiny | 56.1 | 1.72 | 5.00 / 10.47 | 680 / 1095 | 2/3 · WAV |
| Inflect Micro v2 | 76.4 | 2.29 | 6.69 / 10.52 | 669 / 1067 | 3/3 · WAV |
| Nano Edge Standalone | 49.5 | 0.15 | 0.38 / 11.72 | 705 / 1143 | 3/3 · WAV |
| SupraTTS 1.0 Preview | 22.5 | 0.04 | 0.12 / 11.55 | 770 / 1199 | 2/3 · WAV |
| Linnet 35M | 80.1 | 6.22 | 18.82 / 9.28 | 594 / 997 | 3/3 · WAV |
| Kitten 2 Pico int8 | 23.7 | 0.56 | 1.47 / 10.03 | 762 / 1165 | 3/3 · WAV |
| Kitten 2 Pico int4 | 21.0 | 0.56 | 1.52 / 10.03 | 727 / 1101 | 3/3 · WAV |
| Kitten 2 Nano int8 | 26.8 | 1.31 | 3.56 / 12.60 | 934 / 1334 | 3/3 · WAV |
| Kitten 2 Nano int4 | 49.9 | 1.23 | 3.42 / 12.63 | 703 / 1133 | 3/3 · WAV |
| Kitten 2 Mini int8 | 46.8 | 7.04 | 20.19 / 12.35 | 917 / 1277 | 3/3 · WAV |
| Kitten 2 Mini int4 | 61.0 | 8.04 | 22.66 / 12.35 | 674 / 1025 | 3/3 · WAV |
For a station sign that has to speak soon after a user opens the page, Kitten 2 Pico int4 is a useful starting point. It delivered the first WAV in 21 seconds, returned 10 seconds of meeting audio in about 1.5 seconds, and preserved all three ticket values. Pico int8 had the same rounded warm time. For a reader that stays open, tiny-voca took longer to start at 35.7 seconds but needed only 0.38 seconds for 10.41 seconds of meeting audio. Compare those two recordings on the speaker you intend to use.
Quantization made a different tradeoff on Kitten Mini. Int4 lowered observed renderer RSS from 917 to 674 MB, yet its 12.35-second meeting clip took 22.66 seconds to generate, versus 20.19 seconds on int8. Both were slower than playback on this machine. Kale Tiny shows how much cold starts can vary. Its first attempt timed out at 180 seconds. On the successful fresh retry, the 79.9 MB model transfer alone took 73.7 seconds of a 92.5-second first run. The next three clicks took 344, 327 and 335 milliseconds. A median of warm requests would conceal nearly all of the wait a first-time visitor experienced.
What happened to the three ticket facts?
We converted each original WAV to mono 16 kHz PCM and ran local whisper.cpp 1.9.5 with Whisper Base English, four CPU threads, no prompt and no temperature fallback. We scored the transcript against a rule fixed around three values. “Platform 4” counts for “platform four.” In the departure context, “6.05” preserves all the intended digits. “6.5” leaves the minutes ambiguous. For the fare we scored the numeric amount, accepting 15.50 without a currency marker. The recordings are supplied at their original sample rates.
All 19 compact configurations preserved the platform and fare in transcription. Fourteen also preserved the departure time. Klein, Mithi and Paradee produced “6.5” in the transcript. PiVo produced “6, 5 to tick its cost.” SupraTTS produced “The train leaves it.” Supra was quick enough to create 11.55 seconds of meeting audio in 0.12 seconds, but the fast generation did not rescue the missing time on this prompt. A deployment that announces departures should include times with a single-digit minute in its acceptance scripts.
Each score comes from one ticket and one recognizer. It measures whether these facts survived this particular synthesis-and-recognition chain. Accent, phrasing, listener preference and performance on unfamiliar names need separate evidence. The same caution applies to the Kitten 2 rows: six configurations share one voice and much of the same pronunciation pipeline. Six passing rows are useful configuration checks, but they are correlated evidence about pronunciation.
Can spelling out the departure time fix the transcript?
We generated a second pair in the same Paradee worker. On the original input, the English recognizer again printed “the train leaves at 6.5.” We then entered “Platform four. The train leaves at six oh five. Two tickets cost fifteen dollars and fifty cents.” Whisper printed “the train leaves at 6.05.” The platform and fare remained legible in both transcripts. The second clip was only 0.175 seconds longer. This is a repeatable difference in the recognizer’s output for these two scripts. Listen to the departure time before looking at the numbers.
Paradee with the numeric script, 6.700 seconds
Same worker and voice, spelled-out script, 6.875 seconds
Existing voices on the same ticket
We also opened three established workspaces in fresh profiles. Each generated the noon announcement once cold and three more times warm, then exported the ticket WAV through its own controls. These pages have different controls and model hosts. Matcha’s assets came from the local site build, giving it a shorter network path than Kokoro’s Hugging Face download. A first attempt with Kokoro was still loading at the 180-second cutoff. A fresh retry completed. The table preserves both observations.
| Workspace and preset | Cold noon WAV | Three warm runs (s) | Ticket wait / WAV length (s) | Ticket sample |
|---|---|---|---|---|
| Matcha bilingual, default | 3.25 s | 0.658 / 0.666 / 0.681 | 1.10 / 6.64 | 16 kHz WAV |
| Kitten Nano 0.1, Hazel, WASM | 31.99 s | 2.414 / 2.394 / 2.378 | 3.72 / 8.10 | 24 kHz WAV |
| Kokoro q4, Heart, WASM | >180 s on first attempt, 151.41 s on retry | 6.131 / 6.124 / 6.175 | 10.23 / 6.58 | 24 kHz WAV |
The three warm Kokoro noon WAVs had identical SHA-256 digests. Matcha and Kitten produced different hashes across repeats. An identical read can be convenient when regenerating an announcement, but a different hash alone says nothing about whether a listener would notice a difference.
Matcha needs particular care with this comparison. English-only Whisper rendered its English ticket as “Platform for the train leaves at Lingu, two tickets cost $1.00 USD.” It recovered none of the three facts under our scoring rule. That result tells us little about the voice’s intended bilingual use. We also generated these two separate samples in the Matcha app, with the numbers written out. Both exports are mono 16 kHz PCM. They are available for bilingual listening, outside the English ASR score. Try Matcha
Mandarin, 5.94 seconds. 列车六点零五分从四号站台发车,两张票共十五美元五十美分。
Mandarin and English, 4.61 seconds. 四号站台,Platform four. 列车六点零五分发车。
Which release are you hearing?
The upstream Small TTS Bench supplied the candidate list. All timings, memory figures and ticket recordings here come from the OfflineTTS pages. The browser packaging matters. Kitten TTS 2 uses the Eleanor voice for Pico, Nano and Mini in both integer precisions. Kale uses Kenzie for Nano and Tiny. Holding those voices constant makes an int4–int8 comparison easier to interpret. Phonon uses its 31M English checkpoint and built-in default voice. PiVo uses Pi and exports at 16 kHz. A higher sample rate alone says little about how a voice handles a number. Small TTS Bench · Kitten release · PiVo release
Mithi Tiny keeps its published graphs and English Misaki dictionaries. This integration uses an Apache-licensed g2p_en fallback for words outside those dictionaries. Inflect Micro v2 uses the English Dizione phonemizer with its published ONNX graphs and original symbol IDs. Differences from recordings in another player can therefore start before the acoustic model sees the text. Mithi integration credits · Inflect integration credits
Several names on the upstream list describe substantially different releases. Nano Edge Standalone has usable ONNX graphs. The older Kokoro-based Nano Edge expects intermediate Kokoro features in Python. Inflect Micro v2 has a browser path, while the Atom, Micro and Mini v3 packages we examined shipped PyTorch inference. VelvetVoice’s downloadable GGUF is a text normalizer, and the speech backbone still uses PyTorch. Mach Boom ships a custom checkpoint and POSIX C kernels. Counting any of those Python demo pages as a browser port would give the wrong answer for offline deployment. Nano Edge Standalone · Inflect downloads · VelvetVoice files · Mach Boom release
Licenses also affected the selection. Underdog Woof’s weights carry a noncommercial license. PAWP has an Apache-licensed implementation and CC BY weights, but its paper traces the target voice to an OmniVoice teacher, and we could not establish commercial clearance for that voice. Ampixa’s GPL-licensed sanoTTS is available as a separately opened upstream app. We chose heart-nano there and generated two different 180-character passages. Each produced 11.37 seconds of 24 kHz audio. The highest sampled combined renderer RSS through mount and both generations was 425 MiB. Its different controls and two-click protocol keep it outside the repeat-time comparison. Underdog license · PAWP paper · Open sanoTTS
Two other browser demos hit different limits. Sopro v2 Turbo stayed below the memory cutoff during a 270-second attempt at the 180-character passage, but the attempt never yielded a complete WAV. Scylla’s Band downloaded its 303 MB bundle in WASM mode. In a fresh Chrome trial its combined renderer RSS reached 1,054 MB during voice preparation, before the text field became ready. We stopped at that reading. Silencio and Silencio-2 ship Python inference paths. Supertonic 3 already has its own site workspace. Sopro · Scylla’s Band · Supertonic workspace
Repeat the timing experiment
Select a model in the workspace, paste the noon sentence, and time how long the Generate button takes to return with a playable result. Leave the tab open, submit the same text three more times and take the middle time. Switching models terminates the worker. A fresh profile gives a closer comparison with our first click than reloading the same tab. For a pronunciation check, give a listener the ticket WAV before showing them the script. Ask them to write down the platform, time and total fare. Listening with the answer already in view makes an ambiguous number much easier to hear correctly. Open the model picker
For the automated version, start a local production build and pass its origin and model IDs to the repository’s browser runner. TTS_REVIEW_DIR saves one JSON measurement record and one unmodified ticket WAV per successful configuration. The three repeat times are separate entries, so you can recalculate the median or compare variability on another machine.
TTS_REVIEW_DIR=./review-output node tests/small-tts-memory.browser.mjs \
http://localhost:4321 phonon-31m pivo-1.4m Advertisement
Adsterra privacySources
Related articles
Try OfflineTTS
Five local TTS engines, Whisper transcription, and private browser audio tools.
Open TTS Tool