Skip to main content

Models and configuration

Models

IDParametersApprox download
nano-int815M25 MB
nano15M56 MB
micro40M41 MB
mini80M80 MB

Voices

bella, jasper, luna, bruno, rosie, hugo, kiki, and leo.

Configuration

const tts = await KittenTTS.create({
model: 'nano-int8',
defaultVoice: 'luna',
speed: 1.05,
downloadRetries: 4,
ortNumThreads: 4,
maxTokensPerChunk: 400,
trimTrailingSilence: true,
silenceThreshold: 0.005,
maxSilenceTrimMs: 250,
analytics: false,
});
OptionDefaultPurpose
storageDirectoryKittenTTSCache namespace or Node root
modelBaseURLHugging FaceModel asset mirror
modelFilesnoneBytes or Node paths
downloadRetries4Total attempts per asset
ortNumThreads4ONNX intra-op threads
maxTokensPerChunk400Long-text inference size
trimTrailingSilencetrueTrim chunk tails
phonemizerCEPhonemizerCustom G2P implementation
storageruntime defaultCustom AssetStorage
fetchglobalThis.fetchCustom transport
ortWasmPathmatching CDNSelf-hosted browser runtime

Speed is clamped to 0.5–2.0; token count is at least 50.