# Kitten-TTS

> Open-source text-to-speech models and Python library with voice cloning, expression control, and CPU-capable inference.

Kitten-TTS is a series of open-source text-to-speech models built by KittenML. Its flagship Kitten-TTS 2 is a 1.7B-parameter 1-bit model with in-context voice cloning and expression control, and the library also ships lightweight 15M-80M parameter ONNX models that run on CPU. Both model families load through the same `KittenTTS(...)` constructor.

## What It Is

Kitten-TTS is a Python library (`pip install kittenml`) that turns text into 24 kHz speech audio. Users pick a built-in voice or supply a 5-30 second reference recording to clone a speaker without fine-tuning. The README states that Kitten-TTS 2 runs in real time on CPUs and consumer GPUs.

## Voices, Languages and Expression

The library includes 115 built-in voices and supports 20 languages. Delivery can be steered with `[emotion]` tags, inline `<event>` tags and `(((emphasis)))` spans; the README labels expression control as beta and notes it steers delivery rather than guaranteeing it. Decoding presets trade stability against expressiveness. Text preprocessing expands numbers, currencies, dates, units and abbreviations.

## Long Text and Streaming

Long input is split on sentence boundaries, synthesized chunk by chunk and joined with silence trimming and short fades. `generate_stream` yields chunks for early playback, but streaming is chunk-level rather than token-level, and short text yields a single chunk.

## Running It

Backends include the default Python path, a C++ llama.cpp fork (beta) for fast CPU inference, an optional MLX backend for Apple silicon, and an optional vLLM backend for GPU inference on Linux or WSL2. Docs also cover a Docker image exposing an OpenAI-compatible speech API. The prerequisites are Python 3.10+ and either a CUDA GPU with roughly 8 GB free or a CPU with about 6 GB of RAM.

## Licensing

The repository code is Apache 2.0, while models are licensed separately; Kitten-TTS 2 uses the Stellon Labs Community License. Commercial support is offered for integration, custom voices and enterprise licensing.

## Features
- Voice cloning from 5-30 seconds of audio
- 115 built-in voices
- 20 languages
- Emotion, event and emphasis expression tags
- Decoding presets
- Long-form sentence-aware chunking
- Chunk-level streaming
- Automatic text normalization
- 24 kHz audio output
- Real-time CPU inference
- MLX backend for Apple silicon
- vLLM backend for GPU
- Docker OpenAI-compatible speech API
- Lightweight ONNX models (15M-80M parameters)

## Integrations
Hugging Face, llama.cpp, MLX, vLLM, ONNX Runtime, PyTorch, Whisper, Docker, Gradio

## Platforms
WINDOWS, MACOS, LINUX, WEB, API, DEVELOPER_SDK

## Pricing
Open Source, Free tier available

## Version
0.8.1

## Links
- Website: https://github.com/KittenML/KittenTTS
- Documentation: https://github.com/KittenML/KittenTTS/tree/main/docs
- Repository: https://github.com/KittenML/KittenTTS
- EveryDev.ai: https://www.everydev.ai/tools/kitten-tts
