Metadata-Version: 2.4
Name: haaztest-kitten-inference
Version: 0.2.0.post11
Summary: Native inference for Kitten TTS 0.8, Kitten TTS 2 and Kitten TTS 2 mini, nano and pico
Project-URL: Homepage, https://github.com/KittenML/kitten-inference
License-Expression: Apache-2.0 AND MIT AND BSD-3-Clause AND LGPL-2.1-or-later AND NCSA AND PSF-2.0 AND Unicode-3.0 AND SunPro AND BSD-3-Clause WITH PCRE2-exception AND GPL-3.0-or-later WITH GCC-exception-3.1 AND Apache-2.0 WITH LLVM-exception AND LicenseRef-Microsoft-Visual-C-Runtime AND LicenseRef-NVIDIA-CUDA-EULA
License-File: LICENSE
License-File: NOTICE
License-File: tts-0.8/NOTICE
License-File: tts-0.8/licenses/GCC-exception-3.1.txt
License-File: tts-0.8/licenses/GPL-3.0.txt
License-File: tts-0.8/licenses/libc++.txt
License-File: tts-0.8/licenses/pybind11.txt
License-File: tts-2-tiny/NOTICE
License-File: tts-2/NOTICE
License-File: tts-2/licenses/Apache-2.0.txt
License-File: tts-2/licenses/Chatterbox.txt
License-File: tts-2/licenses/FFmpeg-LGPL-2.1.txt
License-File: tts-2/licenses/FunASR.txt
License-File: tts-2/licenses/Julia.txt
License-File: tts-2/licenses/Matcha-TTS.txt
License-File: tts-2/licenses/NumPy-random.txt
License-File: tts-2/licenses/NumPy.txt
License-File: tts-2/licenses/OpenFst.txt
License-File: tts-2/licenses/PCG64.txt
License-File: tts-2/licenses/PCRE2.txt
License-File: tts-2/licenses/PyTorch.txt
License-File: tts-2/licenses/Python.txt
License-File: tts-2/licenses/Random123.txt
License-File: tts-2/licenses/Sacremoses.txt
License-File: tts-2/licenses/SeedSequence.txt
License-File: tts-2/licenses/Tokenizers.txt
License-File: tts-2/licenses/Unicode.txt
License-File: tts-2/licenses/fdlibm.txt
License-File: tts-2/licenses/lgpl-source/atempo.cc
License-File: tts-2/licenses/lgpl-source/atempo.h
License-File: tts-2/licenses/pyannote-audio.txt
License-File: tts-2/licenses/pyannote-embedding.txt
License-File: tts-2/licenses/rocm/HIP.txt
License-File: tts-2/licenses/rocm/ROCm-Device-Libs.txt
License-File: tts-2/licenses/rocm/rocRAND.txt
Requires-Python: >=3.8
Requires-Dist: addict>=2.4; python_version >= '3.10' and python_version < '3.15'
Requires-Dist: espeakng-loader>=0.2.4
Requires-Dist: filelock>=3.12; python_version >= '3.9' and ((sys_platform == 'linux' and platform_machine == 'x86_64') or (sys_platform == 'win32' and platform_machine == 'AMD64'))
Requires-Dist: fugashi>=1.3.2; python_version >= '3.10' and python_version < '3.15' and platform_machine != 'ARM64'
Requires-Dist: huggingface-hub<2,>=0.25
Requires-Dist: jaconv>=0.3; python_version >= '3.10' and python_version < '3.15'
Requires-Dist: numpy>=1.23; python_version < '3.9'
Requires-Dist: numpy>=1.24; python_version >= '3.9'
Requires-Dist: phonemizer>=3.3
Requires-Dist: regex>=2023.10.3; python_version >= '3.10' and python_version < '3.15'
Requires-Dist: soundfile>=0.12.1
Requires-Dist: spacy<3.9,>=3.8; python_version >= '3.10' and python_version < '3.15'
Requires-Dist: tokenizers<0.23,>=0.22; python_version >= '3.9' and ((sys_platform == 'linux' and platform_machine == 'x86_64') or (sys_platform == 'win32' and platform_machine == 'AMD64'))
Description-Content-Type: text/markdown

# kitten-inference

Fast text-to-speech with Kitten TTS 2 on NVIDIA and AMD GPUs, and Kitten TTS 0.8 and the small multilingual Kitten TTS 2
mini, nano and pico on the CPU.
Install with pip; no PyTorch needed.

|  | **Kitten TTS 2** on an NVIDIA GPU | **Kitten TTS 0.8** on the CPU |
|---|---|---|
| Headline | Complete files **5 to 7 times faster** than Kitten TTS 2 on vLLM or llama.cpp | The nano model **1.1 to 2.3 times faster** than kittenml 0.9.6 (ONNX Runtime) on Linux (x86-64 and ARM64), Windows x64 and Apple Silicon Macs |
| Speed | First streamed audio after **about 11 ms** (vLLM and llama.cpp: 481 to 643 ms, as they stream whole sentences) | **About 60 times faster than real time** |
| Example | A short text in 82 ms and a long text in 0.95 s, against 453 to 584 ms and 4.9 to 6.6 s on vLLM, 520 ms and 5.4 s on llama.cpp | A 41-word text (15 to 17 s of speech) in 0.29 s, against 0.54 s with ONNX Runtime |
| Measured on | RTX PRO 6000, one request at a time; vLLM through kittenml 0.9.6 | Ryzen 9 9900X (12 cores), default settings of both packages (on Apple Silicon this engine uses the GPU) |

On smaller GPUs the Kitten TTS 2 lead is smaller: first audio after 22 ms and complete files 4.5 to 6.9 times faster
on an RTX 4090, 58 ms and 2.4 to 4.3 times on a 12 GB RTX 3060. Word error rate on short texts is 0.02 to 0.05% for
every engine compared.

![Kitten TTS 2 native against vLLM and llama.cpp: time to make a complete file on an RTX PRO 6000, RTX 4090 and RTX 3060](https://raw.githubusercontent.com/KittenML/kitten-inference/main/engines/tts2/docs/assets/benchmarks/tts2-complete-files.svg)

![Kitten TTS 0.8 engine against ONNX Runtime on the CPU, 80M int8 model: latency and peak memory on an Android phone (Cortex-A77), a Core i7-12650H laptop and an Apple M2 Pro](https://raw.githubusercontent.com/KittenML/kitten-inference/main/engines/tts08/docs/assets/benchmarks/cpu_onnx_summary.svg)

## Install

Every model uses `from kitten_inference import KittenTTS` with an explicit model name ([API](https://github.com/KittenML/kitten-inference/blob/main/docs/api.md)).

The commands below start a virtual environment and install support for all three model families. On Ubuntu and Debian, `python3 -m venv` needs
`sudo apt-get update && sudo apt-get install -y python3-venv` first. On Windows, run the blocks in a Command Prompt (in PowerShell, type `cmd` first), with `py -m venv .venv` and then
`.venv\Scripts\activate.bat` in place of the first line. On macOS, run the blocks in Terminal. A new Mac has no
Python 3: `python3` only opens a dialog that offers the developer tools (you can cancel it). Install Python 3.14 with
the "macOS 64-bit universal2 installer" from [python.org](https://www.python.org/downloads/macos/) (not 3.15, which
needs a C compiler for a dependency), then open a new Terminal window. In every new Terminal window, run
`. .venv/bin/activate` again in the same folder before `python` or `kitten-tts`.

### Kitten TTS 2: NVIDIA and AMD GPUs

```sh
python3 -m venv .venv && . .venv/bin/activate
python -m pip install -U pip
pip install "kitten-inference>=0.3"
kitten-tts --model KittenML/kitten-tts-2 --text "Hello from Kitten TTS 2." --voice Bruno --output hello.wav
```

- NVIDIA GPU on Linux x86-64 (glibc 2.28 or newer: Ubuntu 20.04, Debian 10, RHEL 8 or later) or Windows x64, with driver R570 or newer.
- Python 3.9 to 3.14 (Python 3.15 needs a C compiler until PyYAML, a dependency, ships ready-made 3.15 packages).
  First use downloads the model (about 4.6 GB) and prepares it once, in about 1 to 3 minutes; later starts reuse it.
- **AMD Radeon RX 7000 and RX 9000:** supported inside WSL2 on Windows 11, experimental on Linux x86-64 without WSL2.
  Install ROCm 7 first (WSL2: step 1 of [AMD Radeon](https://github.com/KittenML/kitten-inference/blob/main/engines/tts2/docs/amd-radeon.md); Linux without WSL2:
  [AMD's ROCm guide](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/) for your distribution), then
  run the same commands: the package finds the Radeon (on a PC that also has an NVIDIA GPU, add `--backend rocm`).
  Real-time factor about 0.06 on an RX 9070 XT (10 s of speech in about 0.6 s). No voice cloning on Radeon.
- **Voice cloning** (NVIDIA only) needs FFmpeg (`sudo apt-get update && sudo apt-get install -y ffmpeg`; on Windows
  `winget install --id Gyan.FFmpeg -e`, then open a new Command Prompt and activate the venv again; Windows Server
  2022 needs winget installed first) and about 11,300 MiB (11 GB) of free GPU memory while the voice is built: on a
  12 GB card, other programs may use at most about 500 MiB.
- **GeForce GTX 10, GTX 16 and RTX 20 series:** supported, not optimal: they have no bf16 tensor cores, so part of the
  math runs in software (real-time factor 0.22 to 0.37 for complete files on desktop cards with 6 GB or more, against
  0.05 to 0.08 on RTX 30, 40 and 50 series cards).
- **Without Python:** the engine is also a C library and the `kitten-tts-native` command. Build it with
  `git clone --branch v0.2.0 https://github.com/KittenML/kitten-inference.git`, then `cd kitten-inference/engines/tts2`, and
  follow [engines/tts2/README.md](https://github.com/KittenML/kitten-inference/blob/main/engines/tts2/README.md).

The package picks its memory settings from the free GPU memory ([GPU memory](https://github.com/KittenML/kitten-inference/blob/main/engines/tts2/docs/memory.md)):

| GPU memory | Built-in voices | Voice cloning |
|---|---|---|
| 24 GB or more | default profile: about 13,500 MiB with one voice | yes: about 15,600 MiB while a voice is built |
| 16 GB | default profile when it fits, else the low-memory profile | yes, with the low-memory profile: about 11,300 MiB |
| 12 GB | low-memory profile, about 9,100 MiB: supported, not optimal, because requests at the same time share smaller buffers (one at a time runs as fast: real-time factor 0.050 against 0.051 on a 16 GB card) | only with about 11,300 MiB free; 10 GB cards: no |
| 4 to 8 GB | low-memory profile fitted to the card: supported, not optimal (one request at a time; complete files about 1.5% slower) | no: build and save the voice on a larger GPU, then load it |

### Kitten TTS 0.8: the CPU

```sh
python3 -m venv .venv && . .venv/bin/activate
python -m pip install -U pip
pip install "kitten-inference>=0.3"
python -c "from kitten_inference import KittenTTS; KittenTTS('KittenML/kitten-tts-nano-0.8').generate_to_file('Hello from Kitten TTS.', 'hello.wav', voice='Jasper')"
```

- Supported: Python 3.8 to 3.14 on Linux x86-64 and ARM64 and Windows x64, and Python 3.9 to 3.14 on Apple Silicon
  Macs (Python 3.15 needs a C compiler until PyYAML ships ready-made 3.15 packages; Python 3.8 on a Mac needs the
  developer tools, `xcode-select --install`, because cffi and PyYAML have no ready-made 3.8 packages for Apple
  Silicon). Experimental: Intel Macs (the macOS build uses one CPU core), Windows ARM64 (no ARM vector kernels, about
  9 times slower than Linux ARM64) and Android ARM64 ([platforms](https://github.com/KittenML/kitten-inference/blob/main/engines/tts08/README.md#platforms)).
- On Windows, if `KittenTTS()` reports "espeak not installed", install the Microsoft Visual C++ Redistributable:
  `winget install Microsoft.VCRedist.2015+.x64`.
- On Windows, keep the virtual environment's path under about 150 characters; longer paths stop TTS 0.8 with an error
  that says so.
- **Supported, not optimal:**
  - int8 models on Intel CPUs: the int8 kernels for x86 are not tuned yet, so they take 1.2 to 2.2 times the ONNX
    Runtime time;
  - int8 models on Apple Silicon: the macOS build uses one CPU core, so they take 1.4 to 1.8 times the ONNX Runtime
    time;
  - creating a model again on the Mac GPU (Metal): each new `KittenTTS` keeps about 290 MB (nano) to 470 MB (mini)
    until the process ends, because the engine does not free its GPU copies of the weights yet. Create each model
    once and reuse it.

### Kitten TTS 2 mini, nano and pico: the CPU

Three small multilingual models that run on the CPU, from the same install as Kitten TTS 0.8:

| Model | Size | Download on first use | Languages |
|---|---|---|---|
| [KittenML/kitten-tts-2-mini](https://huggingface.co/KittenML/kitten-tts-2-mini) | 82M parameters, one model for all languages | about 330 MB once | 16: `en` `de` `es` `fr` `it` `pt` `ru` `hi` `da` `fi` `ja` `ko` `nl` `sv` `sw` `tr` |
| [KittenML/kitten-tts-2-nano](https://huggingface.co/KittenML/kitten-tts-2-nano) | 17M parameters per language | about 70 MB per language | 8: `en` `de` `es` `fr` `it` `pt` `ru` `hi` |
| [KittenML/kitten-tts-2-pico](https://huggingface.co/KittenML/kitten-tts-2-pico) | 7M parameters per language | about 30 MB per language | the same 8 |

One `pip install` gives every model and every language, from ready-made packages: nothing to compile, no extras.
Use **Python 3.10 to 3.14** (check with `python3 --version`, or `py --version` on Windows): English and Japanese need
it. If your `python3` is older, use a newer Python in the first line below, for example `python3.12 -m venv .venv`
(on macOS, see [Install](#install)). On older or newer Pythons, English and Japanese stop with an error that says
so; the other languages are expected to work there but have not been tested. Windows on Arm has not been tested
either; there Japanese raises an error, because its word splitter has no ready-made package for it. These models need kitten-inference 0.3 or newer.

```sh
python3 -m venv .venv && . .venv/bin/activate
python -m pip install -U pip
pip install "kitten-inference>=0.3"
python -c "from kitten_inference import KittenTTS; KittenTTS('KittenML/kitten-tts-2-nano').generate_to_file('Guten Morgen.', 'hallo.wav', language='de')"
python -c "from kitten_inference import KittenTTS; KittenTTS('KittenML/kitten-tts-2-nano').generate_to_file('Hello from Kitten TTS 2.', 'hello.wav')"
```

- **Japanese** (mini only): the first Japanese use downloads a Japanese dictionary (unidic-lite, 47 MB, 260 MB
  unpacked) once.
- **First use** downloads the model's official files from Hugging Face and converts them for the engine once (a few
  seconds); later runs reuse them. spaCy's small English model comes with the package: English needs no other
  download. No Hugging Face account is needed; the warning about `HF_TOKEN` on the first download can be ignored.
- **Voices:** each language has its own. `KittenTTS(model).list_voices(language="de")` or
  `kitten-tts --model KittenML/kitten-tts-2-nano --list-voices --language de` lists them; without `voice=` the
  language's first voice speaks. The same text gives the same audio on the same machine and thread count.
- **Speed of speech:** `speed=` goes from 0.25 to 4 (1.0 is normal, higher is faster); other values raise
  `ValueError`.
- **Threads:** on Linux and Windows, one per logical CPU by default; to use fewer, set `OMP_NUM_THREADS` (for example
  `4`) before the first model loads. On macOS the CPU engine uses one core.
- **Command line:** `kitten-tts --model KittenML/kitten-tts-2-nano --text "Guten Morgen." --language de --output hallo.wav`.
- **Hardware:** the CPU, also on machines with an NVIDIA or AMD GPU (the GPU engine is for Kitten TTS 2;
  `backend="cuda"` raises an error for these models). Installed and tested from the package on Linux (x86-64 and
  Arm64), Windows x64 and macOS (Apple M4 and M6; the Mac GPU on the M6). x86-64 CPUs need AVX2 and FMA (Intel since 2013, AMD since
  2015); Linux Arm64 CPUs need the dot-product instructions (Armv8.2: Raspberry Pi 5 yes, Raspberry Pi 4 no). On an
  older CPU the package raises an error that says so. Linux also needs glibc 2.29 or newer (for the espeak-ng text library); on an older glibc
  the package raises an error that says so.
- **Mac GPU:** on Apple Silicon Macs the float32 models run on the GPU (Metal) by default; `backend="cpu"` keeps
  them on the CPU, and int8 always runs on the CPU. Text, sound lengths and pitch are still computed on the CPU, so
  the audio has exactly the CPU's length and differs from the CPU's audio by about 0.2% or less (signal-to-noise
  55 dB or better). On an Apple M6
  the GPU is 1.9 (pico), 1.5 (nano) and 3.3 (mini) times faster than the CPU (real-time factor 0.014, 0.035 and
  0.074, against 0.027, 0.053 and 0.25), and a whole process needs about 0.47, 0.62 and 1.8 GB at its peak (CPU:
  0.41, 0.52 and 1.25 GB; the peak memory footprint macOS reports). The first use after installing compiles the GPU code once (about half a second).
- **Quality:** with the default float32 models, speech recognition on 454 English test clips makes 0.05 to 0.08
  percentage points more word errors than with the official PyTorch model (1.3 to 1.4% against 1.2 to 1.4%), and the
  naturalness score (UTMOS) is the same. The official model itself moves by up to 0.04 points when run with another
  random seed. The audio is not bit-identical, because the model adds random noise to its voice source.

**Speed.** Real-time factor (compute time / audio length; lower is faster) at 4 threads, on four English texts (69 s
of speech), against the official int8 ONNX files with kittenml 0.9.8:

| CPU | pico | nano | mini |
|---|---|---|---|
| Arm64 (Cortex-X925) | 0.011 (ONNX 0.017) | 0.019 (ONNX 0.032) | 0.075 (ONNX 0.152) |
| x86-64, Ryzen 9 9900X (Zen 5) | 0.010-0.014 (ONNX 0.014-0.015) | 0.014 (ONNX 0.027) | 0.061 (ONNX 0.135) |
| x86-64, Ryzen 9 5950X (Zen 3) | 0.011 (ONNX 0.022) | 0.018 (ONNX 0.042) | 0.077 (ONNX 0.204) |

For pico on the Ryzen 9 9900X the two runs differed by a third, so both are shown: there it is about as fast as ONNX.
At one thread on the Ryzen 9 9900X: pico 0.024, nano 0.046, mini 0.20 (ONNX: 0.027, 0.052, 0.29).
Peak memory of one process (model only) is about 200 MB for pico on x86-64 and 260 MB on Arm64,
300 to 380 MB for nano and 770 MB to 1 GB for mini. A whole Python process that also prepares the English text needs
more: on an Apple M4, about 0.75 GB (pico), 1.05 GB (nano) and 1.7 GB (mini) at its peak on these four texts. The
macOS build of the engine uses one CPU core: real-time factor 0.034 (pico), 0.068 (nano) and 0.29 (mini) on an Apple
M4 (median of 3 runs) and 0.045, 0.088 and 0.37 on an Apple M2 (one run), all faster than real time. On Apple
Silicon the default is the Mac GPU (see above).

- `precision="int8"`: **supported, not optimal.** On Arm64 it is faster again (pico, nano, mini 0.008, 0.012, 0.048
  at 4 threads), but lossier than the official int8 files, because the engine's int8 kernels also quantise
  activations: on 22 short English sentences pico's word error rate rose by 2.2 points (95% interval -0.6 to +4.2)
  and its naturalness score (UTMOS) fell by 0.02. On x86-64 it depends on the CPU. Without AVX-512 VNNI int8 is
  *slower* than float32 (Ryzen 9 5950X: 1.8 to 3.6 times slower at one thread, 1.5 to 3.3 times at 4 threads, measured on an earlier build). On
  Linux, CPUs with AVX-512 VNNI (AMD Zen 4 and later, Intel Xeon since Cascade Lake) get dedicated int8 kernels: on a
  Ryzen 9 7950X int8 is 1.2 to 1.4 times faster than float32 at one thread and 1.1 to 1.4 times at 4 threads, and
  with one single-thread process per core it gives more audio per second with less memory (mini: 63 against 50
  audio seconds per second on 16 cores, 500 against 770 MB per process). Windows and Intel Macs use the AVX2 int8
  kernels. Use the default float32 on x86-64 unless you run Linux on such a CPU. There int8 is faster, but its
  speech quality (word errors and UTMOS) was checked only for pico and nano, with the AVX2 int8 kernels.

#### Many streams on one x86 server (one measured CPU)

Measured on one machine: 2 x Intel Xeon Silver 4110 (16 cores, 32 threads; AVX2 build; float32; 6 English chunks, 72 s of
audio, model compute only; one process per stream, each pinned to its own CPUs, `OMP_NUM_THREADS` = threads per stream;
mean of 2 runs; numbers vary by machine). Total audio seconds per wall-clock
second with every stream faster than real time, with the Winograd convolution of this release:

| Model | Layout (streams x threads) | Audio s per wall s | Slowest stream's real-time factor |
|---|---|---|---|
| mini | 16 x 1 (16 physical cores) | 20.9 | 0.78 |
| mini | 8 x 2 (16 physical cores) | 20.3 | 0.40 |
| nano | 32 x 1 | 92.7 | 0.35 |
| nano | 16 x 1 (16 physical cores) | 86.1 | 0.19 |
| pico | 32 x 1 | 179.9 | 0.18 |
| pico | 16 x 1 (16 physical cores) | 164.4 | 0.10 |

The real-time factor is compute seconds divided by audio seconds. On this machine the second hyper-thread of each core added
at most about 10 % for nano and pico and nothing for mini (mini 32 x 1 was slower, 17.2, one run). More threads per
stream lower one stream's latency but did not raise the total (mini 4 x 4: 18.9, every stream at 0.21, one run). These
numbers are for this CPU; measure your own before choosing a layout.

## Use from Python

```python
from kitten_inference import KittenTTS

tts = KittenTTS("KittenML/kitten-tts-2")
tts.save_wav("hello.wav", tts.generate("Hello from Kitten TTS 2.", voice="Bruno"))
for chunk in tts.stream("Streaming speech, chunk by chunk.", voice="Bruno"):
    ...
```

```python
from kitten_inference import KittenTTS

KittenTTS("KittenML/kitten-tts-nano-0.8").generate_to_file("Hello from Kitten TTS.", "hello.wav", voice="Jasper")
```

```python
from kitten_inference import KittenTTS

with KittenTTS("KittenML/kitten-tts-2-mini") as tts:
    print(tts.list_voices(language="fr"))
    tts.generate_to_file("Bonjour, comment allez-vous ?", "bonjour.wav", language="fr")
```

## Docs

- [Python API and `kitten-tts` command](https://github.com/KittenML/kitten-inference/blob/main/docs/api.md): voices, streaming, voice
  cloning, saved voices, and model options.
- [Kitten TTS 2 engine](https://github.com/KittenML/kitten-inference/blob/main/engines/tts2/README.md): speed tables, [supported GPUs](https://github.com/KittenML/kitten-inference/blob/main/engines/tts2/README.md#supported-gpus), building
  from source, the command-line tool and the C API. Also: [Windows](https://github.com/KittenML/kitten-inference/blob/main/engines/tts2/docs/windows.md),
  [AMD Radeon](https://github.com/KittenML/kitten-inference/blob/main/engines/tts2/docs/amd-radeon.md), [GPU memory](https://github.com/KittenML/kitten-inference/blob/main/engines/tts2/docs/memory.md),
  [speed and audio by GPU group](https://github.com/KittenML/kitten-inference/blob/main/engines/tts2/docs/consumer-gpus.md).
- [Kitten TTS 0.8](https://github.com/KittenML/kitten-inference/blob/main/engines/tts08/README.md): models and voices, options, platforms, and upgrading from 0.1.x
  (`import model_inference` needs `kitten-inference==0.1.1`).
- Kitten TTS 2 mini, nano and pico: [this README's section](#kitten-tts-2-mini-nano-and-pico-the-cpu) and the
  [Python API](https://github.com/KittenML/kitten-inference/blob/main/docs/api.md#model-specific-operations); on phones, the C library in
  [engines/tts08/mobile](https://github.com/KittenML/kitten-inference/blob/main/engines/tts08/mobile/README.md), which can also use the NPU of Snapdragon phones
  ([optional](https://github.com/KittenML/kitten-inference/blob/main/engines/tts08/mobile/README.md#qualcomm-npu-optional)).

## License

KittenML's code is Apache-2.0 ([LICENSE](https://github.com/KittenML/kitten-inference/blob/main/LICENSE)); the package also contains third-party code under other licences
([NOTICE](https://github.com/KittenML/kitten-inference/blob/main/NOTICE), [engines/tts2/NOTICE](https://github.com/KittenML/kitten-inference/blob/main/engines/tts2/NOTICE), [engines/tts08/NOTICE](https://github.com/KittenML/kitten-inference/blob/main/engines/tts08/NOTICE)). The models download on first use and keep their publishers' licences. The Kitten TTS 2 model is
under the [Stellon Labs Community License](https://huggingface.co/KittenML/kitten-tts-2/blob/main/LICENSE.md), not
Apache or MIT: it limits commercial use, training on the outputs and redistribution, so read it before you build on
Kitten TTS 2. The Kitten TTS 0.8 model licences are in [engines/tts08/README.md](https://github.com/KittenML/kitten-inference/blob/main/engines/tts08/README.md#license). The Kitten TTS 2
mini, nano and pico models are Apache-2.0 (see their Hugging Face pages).
