Metadata-Version: 2.4
Name: haaztest-kitten-inference
Version: 0.2.0.post1
Summary: Kitten TTS inference engines: TTS 0.8 on the CPU, TTS 2 on NVIDIA and AMD GPUs
Project-URL: Homepage, https://github.com/KittenML/kitten-inference
Project-URL: Source, https://github.com/KittenML/kitten-inference
Project-URL: Issues, https://github.com/KittenML/kitten-inference/issues
Author: KittenML
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/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
Keywords: cuda,kitten-tts,rocm,speech,text-to-speech,tts
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: GPU :: NVIDIA CUDA :: 12
Classifier: Intended Audience :: Developers
Classifier: Operating System :: Android
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: C++
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Requires-Python: >=3.8
Provides-Extra: tts-0-8
Requires-Dist: espeakng-loader>=0.2.4; extra == 'tts-0-8'
Requires-Dist: huggingface-hub>=0.20; extra == 'tts-0-8'
Requires-Dist: numpy>=1.23; extra == 'tts-0-8'
Requires-Dist: phonemizer>=3.3; extra == 'tts-0-8'
Requires-Dist: soundfile>=0.12.1; extra == 'tts-0-8'
Provides-Extra: tts-2
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'))) and extra == 'tts-2'
Requires-Dist: huggingface-hub<2,>=0.25; (python_version >= '3.9' and ((sys_platform == 'linux' and platform_machine == 'x86_64') or (sys_platform == 'win32' and platform_machine == 'AMD64'))) and extra == 'tts-2'
Requires-Dist: numpy>=1.24; (python_version >= '3.9' and ((sys_platform == 'linux' and platform_machine == 'x86_64') or (sys_platform == 'win32' and platform_machine == 'AMD64'))) and extra == 'tts-2'
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'))) and extra == 'tts-2'
Description-Content-Type: text/markdown

# kitten-inference

Fast inference engines for the Kitten TTS text-to-speech models:

- **Kitten TTS 2 on an NVIDIA GPU:** first streamed audio after about **11 ms**, and complete files **5 to 7 times
  faster** than Kitten TTS 2 on vLLM or llama.cpp (RTX PRO 6000, one request at a time; 2.4 times or more on a 12 GB
  RTX 3060). AMD Radeon RX 7000 and RX 9000 are supported too.
- **Kitten TTS 0.8 on the CPU:** the nano model runs **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, and about **60 times faster than real time** on a 12-core desktop CPU.

```sh
python3 -m venv .venv && . .venv/bin/activate
python -m pip install -U pip
pip install "kitten-inference[tts-0.8]"
```

This installs Kitten TTS 0.8 on the CPU. On Windows, run the commands in a Command Prompt, with `py -m venv .venv` and then `.venv\Scripts\activate.bat` in place of the first line. Upgrade pip as shown: pip older than 23.3 skips the `[tts-0.8]` extra with only a warning. On Ubuntu and Debian, `python3 -m venv` needs `sudo apt-get update && sudo apt-get install -y python3-venv` first.

For Kitten TTS 2, install `"kitten-inference[tts-2]"` instead. It needs Python 3.9 to 3.14 and an NVIDIA GPU (driver
R570 or newer) on Linux x86-64 or Windows x64, or an AMD
Radeon RX 7000 or RX 9000 with ROCm 7 inside WSL2 on Windows 11 (experimental on Linux x86-64 without WSL2;
[setup](https://github.com/KittenML/kitten-inference/blob/main/tts-2/docs/amd-radeon.md)).
It uses the GPU it finds. Kitten TTS 2 does not run on Linux ARM64, macOS or Windows ARM64: the package installs there,
and Kitten TTS 2 says so when it starts. Both engines: `"kitten-inference[tts-0.8,tts-2]"`.

- With a pip older than 23.3 that you cannot upgrade, write the extra as `"kitten-inference[tts-0-8]"` (on Linux
  x86-64 this needs pip 20.3 or newer): supported, not optimal, because such a pip skips `[tts-0.8]` with only a
  warning and leaves out the Python packages Kitten TTS 0.8 needs (it says so when you import it).
- Python: `from kitten_inference.tts08 import KittenTTS`, `from kitten_inference.tts2 import KittenTTS2`.
- Version 0.1.x of this package was the TTS 0.8 engine itself (`import model_inference`); code that uses it pins
  `kitten-inference==0.1.1`.

Docs, speed tables and examples: https://github.com/KittenML/kitten-inference

Licenses: KittenML's code is Apache-2.0. The engines in this package also contain third-party code under other
licenses, listed in the NOTICE files in its `.dist-info/licenses/` folder (also
[on GitHub](https://github.com/KittenML/kitten-inference/blob/main/NOTICE)). The models each engine downloads keep their own licenses. 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: commercial use needs registration, the license ends once your revenue or funding passes US$1M,
training on or distilling from the outputs is not allowed, and redistribution must include the agreement, a notice
file and "Powered by KittenML". Read it before you build on Kitten TTS 2. The Kitten TTS 0.8 model licenses are in
the [tts-0.8 README](https://github.com/KittenML/kitten-inference/tree/main/tts-0.8#license).
