KaleComputer's kale-tts-1-tiny: a 45.7M-parameter English TTS with ten designed voices, an Ettin word encoder in front of a Kokoro-distilled predictor and a source-filter decoder, at 24 kHz, exported for loom.cpp with its own text front end.
This is a loom.cpp export: a single self-describing GGUF that carries its own graph topologies, tokenizer (if any) and driver script, produced by loom-exporter.
Exported from KaleComputer/kale-tts-1-tiny. The F32 file carries the same parameters unmodified, in loom.cpp's GGUF format;
the others are quantized from them (see Files).
apache-2.0, inherited from the base model above.
en
Run it with loom-py -- loom-py-rt on PyPI:
pip install -U "loom-py-rt[hub]>=1.0.0"
import loom
model = loom.Model.from_pretrained("loom-ai-org/kale-tts-1-tiny-loom", "kale-tts-1-tiny-f32.gguf")
# The front end is in the file: numbers, dates, money and units said as words, Kale's word list and its
# homograph rules, and a guesser for words it has never seen. No phonemiser to install.
audio = model.text2speech.infer("Hello world.", voice="kenzie")
audio.save("hello.wav")
model.text2speech.infer("It is 9:30 on March 3, and it costs $4.50.", voice="kenzie").save("numbers.wav")
# Ten voices, by name. Amy and Jack read British English ("the third of March") on their own.
print(model.contract["voices"])
model.text2speech.infer("The meeting moved to 3/4 at 10 a.m.", voice="amy").save("amy.wav")
# Live: the audio a piece at a time, cut by the model's own driver -- joined, the pieces are `infer`'s
# waveform (`stream.exact`). Play each piece as it comes.
stream = model.text2speech.stream("Hello there. How are you today?", voice="kenzie")
sizes = [len(piece) for piece in stream]
print(stream.exact, len(sizes), "pieces,", round(stream.seconds, 2), "s")
The call above is the high-level door: one per task, named for the modality pair it maps between, with
the windowing, sampling and assembly this model needs already applied. Under it, model.infer(...)
passes your arguments straight to the driver this GGUF embeds -- which is where you go for a knob the
door does not name.
model.driver_source prints that driver, including a header comment documenting every argument it
accepts for this model, and is the authority on it. See loom-py for the API and
loom.cpp for what the engine does between the two.
The front end is upstream's, in the engine. Upstream's JavaScript front end (Kale's terms, dizione's number, date, money and unit rules, a CMUdict word list with Kale's hand-checked overrides, homographs, a GRU guesser for unknown words, British files for Amy and Jack) is the file's tokenizer: identical to upstream's on 8678 test texts. Whisper small's word error rate through text2speech.infer(text) on 20 held-out English sentences (numbers, names and dates included; Paradee's set) is 3.5% over the ten voices (2.0-5.8% per voice; Amy 5.8%, Jack 4.3%).
Ten voices, by name (voice="magnus"); the default is Kenzie. The voice picks the accent, as upstream's does. phonemes= is not a door for this model; tokens= takes the front end's packed records.
A sentence at a time. Like upstream, a text is spoken one sentence per pass and infer follows each with 0.12 s of silence; the stream yields one piece per sentence.
Precision. The waveform is 56-74 dB from upstream's modules (f32). Upstream draws its noise unseeded; seed= makes a synthesis repeatable.
One model in several precisions; every file carries the same graph and driver. The quantized ones pack the convolution and projection weights (loom-export --quantize <type>), so their numbers differ from the original model's by the amount noted.
kale-tts-1-tiny-f32.gguf -- full precision, 201.6 MB (Ettin's 67 MB and the front end's word lists and rules included); every duration upstream's, the waveform 56-74 dB from it.kale-tts-1-tiny-q8_0_pc.gguf -- 112.8 MB: the projections and convolutions in per-channel int8. Whisper small hears it as it hears F32: 3.7% / 4.3% / 3.5% for Kenzie, Amy and Magnus against F32's 3.7% / 5.8% / 3.2%.