Metadata-Version: 2.4
Name: haaztest
Version: 0.9.7
Summary: Text-to-speech with voice cloning and expression control, plus ultra-lightweight models that run on CPU
Home-page: https://github.com/KittenML/KittenTTS
Author: KittenML
Author-email: 
License: Apache 2.0
Project-URL: Homepage, https://github.com/KittenML/KittenTTS
Project-URL: Repository, https://github.com/KittenML/KittenTTS
Project-URL: Issues, https://github.com/KittenML/KittenTTS/issues
Keywords: text-to-speech,tts,speech-synthesis,voice-cloning,neural-networks,onnx
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: torch>=2.6
Requires-Dist: torchaudio>=2.6
Requires-Dist: transformers>=4.55
Requires-Dist: safetensors
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: soundfile
Requires-Dist: librosa
Requires-Dist: huggingface_hub
Requires-Dist: brotli
Requires-Dist: einops
Requires-Dist: diffusers
Requires-Dist: omegaconf
Requires-Dist: hydra-core
Requires-Dist: s3tokenizer
Requires-Dist: resemble-perth
Requires-Dist: pyloudnorm
Requires-Dist: kitten-text-processing>=0.1.0
Requires-Dist: espeakng_loader
Requires-Dist: phonemizer
Requires-Dist: onnxruntime
Provides-Extra: vllm
Requires-Dist: vllm==0.31.0; sys_platform == "linux" and extra == "vllm"
Provides-Extra: mlx
Requires-Dist: mlx>=0.29.0; (sys_platform == "darwin" and platform_machine == "arm64") and extra == "mlx"
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# Kitten-TTS

<p align="center">
  <img alt="Kitten TTS" src="https://raw.githubusercontent.com/KittenML/KittenTTS/main/assets/kitten_tts_2_announcement.png" />
</p>

<p align="center">
  <a href="https://huggingface.co/spaces/KittenML/KittenTTS-Demo"><img src="https://img.shields.io/badge/Demo-Hugging%20Face%20Spaces-orange" alt="Hugging Face Demo"></a>
  <a href="https://discord.com/invite/VJ86W4SURW"><img src="https://img.shields.io/badge/Discord-Join%20Community-5865F2?logo=discord&logoColor=white" alt="Discord"></a>
  <a href="https://kittenml.com"><img src="https://img.shields.io/badge/Website-kittenml.com-blue" alt="Website"></a>
  <a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-green.svg" alt="License"></a>
</p>

> ## **New:** Free Kitten-TTS 2 API available at  [https://platform.kittenml.com](https://platform.kittenml.com/)

Kitten-TTS is a series of sota open-source text-to-speech models, built by KittenML. Its flagship model, **Kitten-TTS 2**, is a
1.7B-parameter 1-bit TTS model with in-context voice cloning and expression control. It provides SOTA quality while being so efficient that it runs realtime on CPUs and consumer GPU's!

The library also ships our existing [**lightweight V0.8 models**](docs/onnx-models.md),
15M-80M parameters, which run on CPU without a GPU. Both families load through the same
`KittenTTS(...)` constructor.

**Commercial support is available.** For integration assistance, custom voices, or enterprise licensing, [contact us](https://docs.google.com/forms/d/e/1FAIpQLSc49erSr7jmh3H2yeqH4oZyRRuXm0ROuQdOgWguTzx6SMdUnQ/viewform?usp=preview).


<img   alt="5325cae7-e2e1-4aad-8d53-caf93a268b36" src="https://raw.githubusercontent.com/KittenML/KittenTTS/main/assets/kitten_tts_2_features.png" />



## Table of Contents

- [Features](#features)
- [Available Models](#available-models)
- [Demo](#demo)
- [Quick Start](#quick-start)
- [Voice cloning](#voice-cloning)
- [Expression controls](#expression-controls)
- [Running on CPU](#running-on-cpu)
- [Running on a Mac](#running-on-a-mac)
- [Running with vLLM](#running-with-vllm)
- [Long text and streaming](#long-text-and-streaming)
- [Documentation](#documentation)
- [System Requirements](#system-requirements)
- [Commercial Support](#commercial-support)
- [Community and Support](#community-and-support)
- [License](#license)

## Features

- **Voice cloning** -- Clone any speaker from 5-30 seconds of audio, no fine-tuning
- **115 built-in voices** -- Including the eight from KittenTTS 0.8
- **Multilingual** -- Built-in voices for 16 languages: English, Arabic, Chinese, Dutch, French, German, Hindi, Indonesian, Italian, Japanese, Korean, Polish, Portuguese, Russian, Spanish, Turkish
- **Expression control** -- `[emotion]` tags, inline `<event>` tags, and `(((emphasis)))` spans
- **Decoding presets** -- Trade stability against expressiveness per request
- **Long-form text** -- Sentence-aware chunking with seamless joins
- **Text preprocessing** -- Numbers, currencies, dates, units and abbreviations expanded automatically
- **24 kHz output** -- High-quality audio at a standard sample rate
- **Runs without a GPU**
- **Runs real time on a CPU** -- Check [Running on CPU](#running-on-cpu)
- **Optimized C++ inference for CPU** -- Our fork of [llama.cpp](https://github.com/KittenML/kitten-tts-2-cpp)
- **Several times realtime on Apple silicon** -- Check [Running on a Mac](#running-on-a-mac)




## Available Models

**KittenTTS 2** -- speech language model:

| Model | Parameters | Size | Voices | Download |
|---|---|---|---|---|
| kitten-tts-2 | 1.7B | 947 MiB (506 MiB with `weights="emb4"`) | 115 + cloning | [KittenML/kitten-tts-2](https://huggingface.co/KittenML/kitten-tts-2) |

**Lightweight ONNX** -- runs on CPU, no GPU required:

| Model | Parameters | Size | Download |
|---|---|---|---|
| kitten-tts-mini | 80M | 80 MB | [KittenML/kitten-tts-mini-0.8](https://huggingface.co/KittenML/kitten-tts-mini-0.8) |
| kitten-tts-micro | 40M | 41 MB | [KittenML/kitten-tts-micro-0.8](https://huggingface.co/KittenML/kitten-tts-micro-0.8) |
| kitten-tts-nano | 15M | 56 MB | [KittenML/kitten-tts-nano-0.8](https://huggingface.co/KittenML/kitten-tts-nano-0.8-fp32) |
| kitten-tts-nano (int8) | 15M | 25 MB | [KittenML/kitten-tts-nano-0.8-int8](https://huggingface.co/KittenML/kitten-tts-nano-0.8-int8) |


## Demo


https://github.com/user-attachments/assets/c42c236b-7b7d-41d6-944b-7527a5f30626








### Try it online

Try Kitten TTS directly in your browser on [KittenML Platform](https://platform.kittenml.com).

Or run the [Gradio demo](#gradio-demo) on your own machine.

## Quick Start

### Prerequisites

- Python 3.10 or later (3.10 to 3.14 for the vLLM backend)
- kittenml 0.9.7 or later: these docs describe 0.9.7
- A CUDA GPU with roughly 8 GB free and NVIDIA driver 580 or newer, or a CPU with about 6 GB
  of RAM (with an older driver, see [below](#nvidia-drivers-older-than-580))
- Internet access to huggingface.co the first time a model is loaded: the model (and Whisper,
  for cloning without a transcript) is downloaded then and cached for later runs
- Disk space: about 6.3 GB for the Python packages (with CUDA PyTorch; pip also keeps about
  3 GB of downloads in its cache, 5.4 GB after the vLLM install, which `pip cache purge`
  removes), about 2 GB for the model and
  its audio decoder (about 1.5 GB with `weights="emb4"`), and 1.6 to 3 GB for Whisper when you
  clone a voice without its transcript. With the [vLLM backend](#running-with-vllm), the
  packages take about 8.7 GB.

### Installation

On Ubuntu or Debian, install Python's tools, then KittenTTS into a virtual environment:

```bash
sudo apt update
sudo apt install -y python3-venv python3-dev gcc
python3 -m venv ~/kitten-env
source ~/kitten-env/bin/activate
python -m pip install --upgrade pip
pip install "kittenml>=0.9.7"
```

If you are `root` and `sudo` is not installed (for example in a container), first run
`apt-get update && apt-get install -y sudo`.

If `apt` stops because it "could not get lock", automatic updates are running (often in the first
minutes after a machine starts): wait a minute and run the same command again, until it no
longer reports the lock.

On 64-bit Windows, PyTorch needs the
[Microsoft Visual C++ v14 runtime](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist).
Open PowerShell **as administrator** and install it:

```powershell
$vcInstaller = "$env:TEMP\vc_redist.x64.exe"
Invoke-WebRequest https://aka.ms/vc14/vc_redist.x64.exe -OutFile $vcInstaller
$vcInstall = Start-Process $vcInstaller -ArgumentList '/install', '/quiet', '/norestart' -Wait -PassThru
if ($vcInstall.ExitCode -eq 3010) { throw 'Restart Windows, then continue with Python setup below.' }
if ($vcInstall.ExitCode -ne 0) { throw "Visual C++ installer exited with $($vcInstall.ExitCode)" }
```

Keep that administrator PowerShell window open. If Python is not installed, these commands
install [Python 3.13](https://www.python.org/downloads/release/python-31317/) for all users.
This also works when Windows Server's installer policy blocks per-user installs (error 1625):

```powershell
$installer = "$env:TEMP\python-3.13.17-amd64.exe"
Invoke-WebRequest https://www.python.org/ftp/python/3.13.17/python-3.13.17-amd64.exe -OutFile $installer
$install = Start-Process $installer -ArgumentList '/quiet', 'InstallAllUsers=1', 'InstallLauncherAllUsers=1', 'Include_test=0' -Wait -PassThru
if ($install.ExitCode -ne 0) { throw "Python installer exited with $($install.ExitCode)" }
& "$env:ProgramFiles\Python313\python.exe" --version
```

Then open a **normal PowerShell window** and create your own environment:

```powershell
& "$env:ProgramFiles\Python313\python.exe" -m venv "$HOME\kitten-env"
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
& "$HOME\kitten-env\Scripts\Activate.ps1"
pip install "kittenml>=0.9.7"
```

If Python is already installed, use its interpreter for the `-m venv` command and continue
from there. The execution-policy setting applies only to the current PowerShell session.
In each new PowerShell terminal, run the `Set-ExecutionPolicy` and `Activate.ps1` lines
again before running the examples.

The Windows install above uses the CPU build of PyTorch. For an NVIDIA RTX 30 series or
newer GPU (compute capability 8.0 or newer) with driver 580 or newer, install the CUDA 13
build in the activated environment:

```powershell
pip install --upgrade torch torchaudio --index-url https://download.pytorch.org/whl/cu130
python -c "import torch; print(torch.__version__); print(torch.cuda.is_available())"
```

The last line should print a version ending in `+cu130` and `True`. Without a working CUDA
build, the basic example still runs on the CPU. For other GPUs, use
[PyTorch's installation selector](https://pytorch.org/get-started/locally/) to choose a
build that supports your GPU and driver.

On other systems, create and activate a virtual environment with Python 3.10 or later, then run
the same `pip install` line. In each new Unix shell, activate the environment again with
`source ~/kitten-env/bin/activate`. `python3-dev` and `gcc` are needed only by the
[vLLM backend](#running-with-vllm).

That is the whole install: voice cloning is included, and no Hugging Face login is needed --
everything the model downloads (its weights, its audio decoder and the parts used for cloning,
including Whisper) comes from public repositories. Loading a model may print a warning about
"unauthenticated requests" and `HF_TOKEN`; it is harmless, and you can ignore it. The install
also pulls the small ONNX runtime, so the [lightweight models](docs/onnx-models.md) work from
the same install.

#### NVIDIA drivers older than 580

On Linux, the default install gets PyTorch for CUDA 13.0, which uses an NVIDIA GPU only with driver 580 or newer
(check with `nvidia-smi`, as described under [Running with vLLM](#running-with-vllm)). With an
older driver, KittenTTS runs on the CPU instead, and PyTorch prints "The NVIDIA driver on your
system is too old". This is supported, but not the optimal path: a 5-second sentence took 26 s
on 12 CPU threads, against 3.2 s on the same machine's GPU (RTX A2000, driver 570), with the
model already loaded. To use the GPU, update the driver to 580 or newer, or use the CUDA 12.9
environment from the [vLLM guide](docs/vllm.md#older-nvidia-drivers), where the 3.2 s was
measured.

### Basic usage

Save this as `hello.py`:

```python
from kittenml import KittenTTS
import soundfile as sf

m = KittenTTS("KittenML/kitten-tts-2")

audio = m.generate("Hi! umm.. how are you, I guess?  .. uh.. nice to meet you??",
                   voice="WeatherPresenterCheerful")
sf.write("output.wav", audio, m.sample_rate)
```

Then run it:

```bash
python hello.py
```

It writes `output.wav`. The first run downloads the model (about 2 GB). Pass
`"KittenML/kitten-tts-2"` as above to get KittenTTS 2; `KittenTTS()` with no name loads the small
ONNX model kitten-tts-nano-0.8.
> To run Kitten-TTS 2 on a CPU, please refer to  [Running on CPU](#running-on-cpu)

`m.available_voices` lists the built-in voices (115 in the current model), described in
[voices and expression](docs/voices-and-expression.md). Bella, Jasper, Luna, Bruno, Rosie, Hugo,
Kiki and Leo are the same speakers as in KittenTTS 0.8, so code written against the ONNX models
keeps working.

The weights come in two sizes. The default is 947 MiB and lossless; `weights="emb4"` is 506 MiB
because it quantises the token embedding, which costs a little quality. Only the one you ask for
is downloaded.

```python
m = KittenTTS("KittenML/kitten-tts-2", weights="emb4")   # half the download
```

```python
# Trade stability against expressiveness
audio = m.generate("Hello, world.", voice="Matthew", preset="expressive")

# Save directly to a file
m.generate_to_file("Hello, world.", "output.wav", voice="Bruno")
```

### Gradio demo

To try the voices, cloning and expression tags in a browser, install Gradio into the same
environment, download the demo script and run it:

```bash
sudo apt install -y wget
pip install gradio
wget https://raw.githubusercontent.com/KittenML/KittenTTS/main/gradio_demo.py
python gradio_demo.py
```

It prints `Loaded KittenML/kitten-tts-2 · backend torch · device cuda` (or `cpu`) when the
model is ready, then `Running on local URL:  http://127.0.0.1:7860`: open that address in a
browser on the same machine. Stop it with Ctrl+C. After the [vLLM install](#running-with-vllm),
`python gradio_demo.py --backend vllm` uses the vLLM backend.

## Voice cloning

Pass `reference=` instead of `voice=` — same method, the recording just replaces the built-in
speaker. Give it 5-30 seconds of a single speaker. The transcript is part of the prompt, but you
do not have to type it; Whisper fills it in when omitted.

Save this as `clone.py`. It first records a sample clip with a built-in voice, so it runs as it
is; to clone your own voice, delete that step and put your recording at `my_voice.wav`:

```python
from kittenml import KittenTTS

m = KittenTTS("KittenML/kitten-tts-2")

# A sample clip to clone. Replace it with your own recording of 5-30 seconds.
sample = ("I am recording this short clip so that my voice can be cloned. "
          "It only needs a few seconds of clear speech.")
m.generate_to_file(sample, "my_voice.wav", voice="Luna")

# Whisper transcribes the clip first
m.generate_to_file("This is my own voice, cloned.", "cloned.wav", reference="my_voice.wav")

# Supplying the transcript skips the Whisper pass
m.generate_to_file("This is my own voice.", "cloned_with_text.wav", reference="my_voice.wav",
                   reference_text=sample)
print("Saved my_voice.wav, cloned.wav and cloned_with_text.wav")
```

Then run it:

```bash
python clone.py
```

It writes the sample `my_voice.wav`, then `cloned.wav` and `cloned_with_text.wav`, and prints
`Saved my_voice.wav, cloned.wav and cloned_with_text.wav`. The first clone without
`reference_text` downloads Whisper. While Whisper runs, `transformers` prints three warnings
(about `chunk_length_s`, `generation_config` and `clean_up_tokenization_spaces`); they are
harmless. On a GPU with too little free memory for Whisper, it runs on the CPU instead,
which is slower and can give a different transcript (see
[Cloning on a small GPU](docs/vllm.md#small-gpus)).

The reference feeds the model by two independent routes -- a speaker embedding through the
model's projection head, and the clip itself as codec tokens in the prompt -- so identity
survives even when one route is weak.

Measured on the 38 English voices of the model's earlier 47-voice set: a generated clip scores
0.49-0.72 speaker similarity against its own reference and 0.01-0.18 against the other 37, and
cloning an unseen recording scores 0.81 against that recording.

## Expression controls

> **Beta.** Emotion control steers delivery rather than guaranteeing it, and the effect varies
> by voice and by sentence.

```python
audio = m.generate(
    "[joyful] We actually won the grant <laugh> I can (((hardly))) believe it!",
    voice="Kiki",
    preset="expressive",
)
```

A leading `[emotion]` tag, inline `<event>` tags and `(((emphasis)))` spans reach the model as
markup rather than being spoken, and automatically enable its expression conditioning. Ten
emotions and ten vocal events are recognised -- see
[voices and expression](docs/voices-and-expression.md) for the full lists and what is not
covered.

## Running on CPU

Kitten-TTS 2 runs on CPU out of the box — `device` is auto-detected — but the fastest way is
[kitten-tts-2-cpp](https://github.com/KittenML/kitten-tts-2-cpp), our llama.cpp fork. It reads
the GGUF weights in the model repository's `cpp/` directory. You can use the Python bindings too:

```
pip install kitten_tts_cpp
```

```python
from kitten_tts_cpp import KittenTTS

model = KittenTTS("KittenML/kitten-tts-2", decoder="student_w4", threads=8)
model.generate_to_file("One day, a little girl named Lily found a needle in her room.", "hello.wav", voice="Bruno")
print(model.last_report)  # Generation timings and token IDs.
```

> Kitten-TTS 2 C++ is in beta. Please report any issues you encounter.

## Running on a Mac

On an Apple-silicon Mac, install the optional MLX backend and select it:

```bash
pip install "kittenml[mlx]"
```

```python
from kittenml import KittenTTS

m = KittenTTS("KittenML/kitten-tts-2", backend="mlx")
m.generate_to_file("One day, a little girl named Lily found a needle in her room.",
                   "hello.wav", voice="Bruno")
```

See the [MLX guide](docs/mlx.md) for benchmarks and the full details.

## Running with vLLM

For GPU inference with vLLM on Linux and an NVIDIA GPU, install the optional backend into the
environment from [Installation](#installation). GeForce RTX 30 and newer use bfloat16.
**RTX 20 and GTX 16 are supported, not optimal:** they use rounded float16 with 4-bit weights
because they have no bfloat16. Audio can differ; a 6 GB GTX 1660 Ti passed, while a 4 GB GTX 1650
did not have enough memory ([measured quality and speed](docs/vllm.md#older-gpus-rtx-20-and-gtx-16-series)).
V100 needs a separate [CUDA 12.6 source build](docs/vllm.md#v100-cuda-126-source-build),
with dense float16 weights; the CUDA 13 install below does not support it. AMD Radeon
RX 7000 (RX 7700 and up) and RX 9000 series GPUs work too, on Windows through WSL2, with their
own install steps instead of the one below ([AMD GPUs](docs/vllm.md#amd-gpus-rocm)); their audio
differs slightly from an NVIDIA GPU's, less than a change of seed
([Output differences](docs/vllm.md#output-differences)).

First check your NVIDIA driver: the install below gets CUDA 13.0 builds of vLLM and PyTorch
(about 9 GB), which need driver 580 or newer. Run `nvidia-smi`: the number after "NVIDIA-SMI" in
its first line is the driver version, and the same line shows "CUDA Version" 13.0 or higher (from
driver 615 it is labelled "CUDA UMD Version"). With an older driver, use the
[CUDA 12.9 install](docs/vllm.md#older-nvidia-drivers) instead of the line below. With driver 580
or newer:

```bash
pip install "kittenml[vllm]>=0.9.7"
```

vLLM compiles GPU kernels when it starts, which needs the `gcc` and `python3-dev` packages from
[Installation](#installation).

Save this as `vllm_hello.py`:

```python
from kittenml import KittenTTS

def main():
    m = KittenTTS("KittenML/kitten-tts-2", backend="vllm",
                  vllm_options={"quantization": "w4a16"})
    m.generate_to_file("Hello there.", "vllm_output.wav", voice="Bruno")
    print("Saved vllm_output.wav")

if __name__ == "__main__":
    main()
```

Then run it:

```bash
python vllm_hello.py
```

The first start downloads the model and compiles GPU kernels. This can take several minutes
(6 minutes on an RTX 3060 12 GB, with the model already downloaded), and vLLM prints almost
nothing while it compiles. To see its progress, run `VLLM_LOGGING_LEVEL=INFO python vllm_hello.py`
instead. Later starts take about a minute. vLLM's warnings about the `spawn` start method and
about "Triton kernel JIT compilation during inference" are expected, and so is one at exit
about "force killing" its engine process when it appears. Keep the main guard when running
a script: vLLM starts a worker process. The same voices, decoders, weight choices and generation
arguments apply.

The example uses 4-bit language-model weights (`"quantization": "w4a16"`): the same weights,
exactly, in about 2 GB less GPU memory, and faster for single requests; the audio is close to,
not bit for bit the same as, bf16 ([Output differences](docs/vllm.md#output-differences)). On
GPUs with more than 8 GB, leaving out `vllm_options` runs in bf16; see
[4-bit weights](docs/vllm.md#4-bit-weights).

On GPUs with 8 GB or less, KittenTTS checks the free memory when the model loads. If vLLM's
defaults do not fit next to audio decoding, the settings you left out are chosen to fit, and a
warning lists them; if they fit, nothing changes and nothing is printed. With at least about
7 GiB free on an 8 GB card, the example's options fit as they are. 8 GB cards, and 6 GB cards
with at least about 4.9 GiB free, start with no options or with the example's. Chosen settings
are supported, but not the optimal path: the cache holds four full-length requests on an 8 GB
card and one on a 6 GB card, and with less than about 5.1 GiB free the context is also
shortened (to 2,048-3,584 tokens). See [Small GPUs](docs/vllm.md#small-gpus),
and the [vLLM guide](docs/vllm.md) for memory settings and benchmarks.


## Long text and streaming

Long input is split on sentence boundaries and synthesized chunk by chunk, then joined with
silence trimming and short edge fades so the seams are inaudible. This is automatic: the model is
reliable on short inputs but truncates or drifts into repetition when asked for a whole script in
one pass.

To start playing before the whole thing is ready, stream it:

```python
for chunk in m.generate_stream(long_text, voice="Luna"):
    play(chunk)          # each chunk is a numpy array at m.sample_rate
```

It takes the same arguments as `generate`, so `reference=` streams a cloned voice too.

Streaming is **chunk-level, not token-level**: a chunk is generated and vocoded in full before it
is yielded, so the first chunk still costs its own generation time. On an A100, a 936-character
passage yielded its first 21 s of audio after 17 s and finished 54 s of audio in 42 s of wall
clock -- so playback keeps ahead of generation, but there is a real initial delay.

Two consequences worth knowing:

- **Short text does not stream.** Input that fits in one chunk (under roughly 380 characters,
  and short trailing pieces get merged into their neighbour) yields exactly one chunk, so
  `generate_stream` behaves like `generate`.
- **Chunks are yielded raw.** `generate` post-processes the seams -- trimming each segment's edge
  silence, adding short fades and one consistent pause -- which a streaming caller cannot do
  without waiting for the next chunk. Concatenating streamed chunks directly gives slightly
  rougher joins than `generate` on the same text.

## Documentation

| | |
|---|---|
| [API reference](docs/api.md) | Every argument to `generate`, streaming, and the advanced knobs |
| [Voices and expression](docs/voices-and-expression.md) | The built-in voices and their languages, emotion and vocal-event tags |
| [Decoders](docs/decoders.md) | How audio is decoded, and the smaller quantised decoders |
| [Text normalization](docs/text-normalization.md) | How written text becomes spoken text |
| [Architecture](docs/architecture.md) | What the model is, package layout, vendored components |
| [Docker](docs/docker.md) | Run a basic OpenAI-compatible speech API, with voice cloning, in a container |
| [Lightweight ONNX models](docs/onnx-models.md) | The CPU models, 15M-80M parameters, and their API |
| [MLX on Apple silicon](docs/mlx.md) | The optional Mac GPU backend, and why it is faster |

## System Requirements

**KittenTTS 2**

- **Operating system:** Linux, Windows or Mac
- **Python:** 3.10 or later (3.10 to 3.14 for the vLLM backend)


A virtual environment (conda, venv, or similar) is recommended to avoid dependency conflicts.


## Commercial Support

We offer commercial support for teams integrating Kitten TTS into their products. This includes integration assistance, custom voice development, and enterprise licensing.

[Contact us](https://docs.google.com/forms/d/e/1FAIpQLSc49erSr7jmh3H2yeqH4oZyRRuXm0ROuQdOgWguTzx6SMdUnQ/viewform?usp=preview) or email info@stellonlabs.com to discuss your requirements.

## Community and Support

- **Discord:** [Join the community](https://discord.com/invite/VJ86W4SURW)
- **Website:** [kittenml.com](https://kittenml.com)
- **Custom support:** [Request form](https://docs.google.com/forms/d/e/1FAIpQLSc49erSr7jmh3H2yeqH4oZyRRuXm0ROuQdOgWguTzx6SMdUnQ/viewform?usp=preview)
- **Email:** info@stellonlabs.com
- **Issues:** [GitHub Issues](https://github.com/KittenML/KittenTTS/issues)

## License

This project is licensed under the [Apache License 2.0](LICENSE). That covers the code in this
repository.

**The models are licensed separately and their terms may differ.** Each model repository carries
its own licensing, so check the one you intend to use before relying on it — do not assume the
code's license extends to the weights.

KittenTTS 2 is released under the
[Stellon Labs Community License](https://huggingface.co/KittenML/kitten-tts-2/blob/main/LICENSE.md)
