- kitten
- guide
- offline
The tempting number on Kitten TTS 2 Mini’s model card is 47.5 MB. Suppose you have 50 MB left in an app download budget. Does Mini fit? You can answer that one before installing Python.
The int4 model file is 47,468,831 bytes. The English voice pack is 5,747,328 bytes. Together they come to 53,216,159 bytes, before pronunciation files, configuration, or the runtime. Kitten could still be an excellent choice for that app. Someone just needs to tell the person who promised a 50 MB download. The published files
The voice pack buys you more than the voice in the sample below. Mini’s configuration points every English preset at the same pack. If the director wants to audition a second English narrator tomorrow, those bytes are already on disk. Adding another native language is a different decision. Open the language’s entry in the configuration and look up the file named under voices before setting a download budget.
What the installer went looking for #
We followed a fresh English setup as far as the pronunciation files. The downloaded dictionary, cmu_misaki_us.json, took 3,418,388 bytes. Beside it sat a 3,011,692-byte model for converting unfamiliar spellings into sounds. The vocabulary, configuration and small accompanying files brought the subtotal to 59,667,517 bytes when counted alongside the int4 graph and English voices. That’s the size of those particular upstream files. A Python environment, its language packages and the audio library still need disk space of their own. The model revision we inspected
One wrinkle turned up before we got to the ferry announcement. With kittenml 0.9.8 installed, the public constructor accepted the model card’s weights="int4" argument. In that package the Mini still looked up model_file in the language configuration, which pointed to the int8 graph. If you’re testing a size claim, check which ONNX file actually landed on disk. An error-free constructor call is a poor receipt for a 47 MB download.
Which Kitten are we talking about? #
The November 13 Mini release is an 82M-parameter model. Its original int8 ONNX graph is about 82.7 MB. KittenML added the int4 graph on November 18. Both produce 24 kHz audio. If an older installation guide shows a larger download, check its date and weight selection. The documented Python default is int8. Weight history
There’s another easy mix-up for readers here. The OfflineTTS Kitten demo runs Nano 0.1, with eight English presets. A good result in that tab tells you something about Nano. To hear Mini, select the Mini weights explicitly. KittenML lists 118 voices across 16 languages for this release.
One voice, two languages #
A voice name doubles as a language choice. Select Felix and the German text gets a German voice. Select Eleanor and English is the default. For a bilingual project there’s a useful wrinkle: Mini lets the English cast speak German, Spanish, Italian, Portuguese and Russian under the same names when the language is specified. That saves a producer from casting a second voice for a single line of German. It still leaves a German listener with the last word on pronunciation.
We made this English clip on an eight-core Apple M3 with Eleanor and the int4 graph. The second call to generate took 1.31 seconds for 5.15 seconds of speech. The first call in the same process took 5.95 seconds with the model files already on disk. Both timers stopped before the WAV was written. That’s one line on one machine.
Transcript: The last ferry leaves at six fifteen. If you miss it, call June at the ticket desk. Download the original 24 kHz WAV.
To read the line with the default int8 graph, install kittenml and soundfile in a Python environment, then run the script with network access for the first download. For the clip above we used a local copy of the same model revision and set the English model_file in its config.json to kitten_tts_2_mini_int4.onnx before the directory.
import soundfile as sf
from kittenml import KittenTTS
reader = KittenTTS("KittenML/kitten-tts-2-mini") # default int8 graph
line = "The last ferry leaves at six fifteen. If you miss it, call June at the ticket desk."
audio = reader.generate(line, voice="Eleanor")
sf.write("last-ferry.wav", audio, 24000)
Why spell out “six fifteen”? To give the listener one job at a time. On the first take, listen for the boundary between the announcement and the much more conversational second sentence. On the second, change the time to 6:15 and see whether text normalization changes the reading. Keep the same voice and model for both.
The rehearsal before you lose Wi-Fi #
Keep an eye on the first call to generate. In our English setup it also triggered installation of spaCy’s English language package. That matters if you plan to put this on a machine in a ticket office: installing the Python package at headquarters and doing the first read at the dock are two different jobs. Send one complete sentence through the eventual installation while it still has a connection.
Then close the process, disconnect and read tomorrow’s timetable in a fresh process. A prerecorded announcement would give you a reassuringly quick result and tell you nothing about whether the clerk can change the departure time. Save the output as a WAV, open it in an ordinary player, and check that the last word made it into the file. That is the handoff I’d want before putting a ferry’s schedule in someone else’s hands.
If all your copy is English and runs on a small board, the more interesting alternative is Phonon 31M. For a CPU app with a multilingual preset cast, Mini would be my first download. I’d put the voice files on the same delivery budget as the network itself.
Advertisement
Sources #
Related articles #
Try OfflineTTS #
Five local TTS engines, Whisper transcription, and private browser audio tools.