1# Download2hf download idle-intelligence/kitten-tts-nano-safetensors --local-dir models/kitten-nano
34# Build and run (zero system dependencies)5cargo build --example kitten_generate -p kitten-core --release --features espeak
6./target/release/examples/kitten_generate \7 --model models/kitten-nano/kitten-nano.safetensors \8 --voices models/kitten-nano/kitten-voices.safetensors \9 --voice jasper \10 --text "Hello, this is a test of the text-to-speech system."\11 --output hello.wav
Browser (WASM)
This model runs in the browser via WebAssembly. See tts-web for the full demo.
Conversion
Weights were extracted from the ONNX model using scripts/convert_kitten_to_safetensors.py:
ONNX initializers → safetensors tensors
Weight names remapped to match the candle module hierarchy
MatMul weights transposed to candle Linear convention [out, in]
LSTM weights kept in ONNX packed format [directions, 4*hidden, input]
Voice embeddings extracted from voices.npz and mapped to friendly names
Source ONNX SHA-256 is embedded in safetensors metadata for traceability.