Documentation Index
Fetch the complete documentation index at: https://mintlify.com/KittenML/KittenTTS/llms.txt
Use this file to discover all available pages before exploring further.
Signature
generate() that writes the resulting audio to disk using soundfile. Use it when you don’t need to manipulate the audio array in memory.
Parameters
The input text to synthesize.
File path where the audio will be saved. The file format is inferred from the extension.Supported formats:
.wav, .flac, .ogg.Voice to use for synthesis. Accepts any friendly name from
available_voices:
Bella, Jasper, Luna, Bruno, Rosie, Hugo, Kiki, Leo.The default "expr-voice-5-m" is the internal ID for Leo. You can pass either the friendly name or the internal ID.Speech speed multiplier.
1.0— normal speed- Values below
1.0slow down speech - Values above
1.0speed it up
Audio sample rate in Hz. The model produces audio at 24 kHz. Change this only if you need to resample the output for a specific downstream use case.