百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
K

KittenTTS

> 编程语言
开源

25MB 下最先进的TTS型号

15.3K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

25MB 下最先进的TTS型号

Kitten TTS

New: Free Kitten TTS API available at https://platform.kittenml.com

Kitten TTS is an open-source, lightweight text-to-speech library built on ONNX. With models ranging from 15M to 80M parameters (25-80 MB on disk), it delivers high-quality voice synthesis on CPU without requiring a GPU.

Status: Developer preview -- APIs may change between releases.

Commercial support is available. For integration assistance, custom voices, or enterprise licensing, contact us.

Table of Contents

  • Features
  • Available Models
  • Demo
  • Quick Start
  • API Reference
  • System Requirements
  • Roadmap
  • Commercial Support
  • Community and Support
  • License

Features

  • Ultra-lightweight -- Model sizes from 25 MB (int8) to 80 MB, suitable for edge deployment
  • CPU-optimized -- ONNX-based inference runs efficiently without a GPU
  • 8 built-in voices -- Bella, Jasper, Luna, Bruno, Rosie, Hugo, Kiki, and Leo
  • Adjustable speech speed -- Control playback rate via the speed parameter
  • Text preprocessing -- Built-in pipeline handles numbers, currencies, units, and more
  • 24 kHz output -- High-quality audio at a standard sample rate

Available Models

Model Parameters Size Download
kitten-tts-mini 80M 80 MB KittenML/kitten-tts-mini-0.8
kitten-tts-micro 40M 41 MB KittenML/kitten-tts-micro-0.8
kitten-tts-nano 15M 56 MB KittenML/kitten-tts-nano-0.8
kitten-tts-nano (int8) 15M 25 MB KittenML/kitten-tts-nano-0.8-int8

Note: Some users have reported issues with the kitten-tts-nano-0.8-int8 model. If you encounter problems, please open an issue.

Demo

https://github.com/user-attachments/assets/d80120f2-c751-407e-a166-068dd1dd9e8d

Try it online

Try Kitten TTS directly in your browser on Hugging Face Spaces.

Quick Start

Prerequisites

  • Python 3.8 or later
  • pip

Installation

bash
pip install https://github.com/KittenML/KittenTTS/releases/download/0.8.1/kittentts-0.8.1-py3-none-any.whl

Basic Usage

python
from kittentts import KittenTTS

model = KittenTTS("KittenML/kitten-tts-mini-0.8")
audio = model.generate("This high-quality TTS model runs without a GPU.", voice="Jasper")

import soundfile as sf
sf.write("output.wav", audio, 24000)

Advanced Usage

python
# Adjust speech speed (default: 1.0)
audio = model.generate("Hello, world.", voice="Luna", speed=1.2)

# Save directly to a file
model.generate_to_file("Hello, world.", "output.wav", voice="Bruno", speed=0.9)

# List available voices
print(model.available_voices)
# ['Bella', 'Jasper', 'Luna', 'Bruno', 'Rosie', 'Hugo', 'Kiki', 'Leo']

Using with GPU

bash
pip install -r requirements_gpu.txt
python
m = KittenTTS("KittenML/kitten-tts-mini-0.8", backend="cuda")

Check out example_cuda.py

API Reference

KittenTTS(model_name, cache_dir=None)

Load a model from Hugging Face Hub.

Parameter Type Default Description
model_name str "KittenML/kitten-tts-nano-0.8" Hugging Face repository ID
cache_dir str None Local directory for caching downloaded model files

model.generate(text, voice, speed, clean_text)

Synthesize speech from text, returning a NumPy array of audio samples at 24 kHz.

Parameter Type Default Description
text str -- Input text to synthesize
voice str "expr-voice-5-m" Voice name (see available voices)
speed float 1.0 Speech speed multiplier
clean_text bool False Preprocess text (expand numbers, currencies, etc.)

model.generate_to_file(text, output_path, voice, speed, sample_rate, clean_text)

Synthesize speech and write directly to an audio file.

Parameter Type Default Description
text str -- Input text to synthesize
output_path str -- Path to save the audio file
voice str "expr-voice-5-m" Voice name
speed float 1.0 Speech speed multiplier
sample_rate int 24000 Audio sample rate in Hz
clean_text bool True Preprocess text (expand numbers, currencies, etc.)

normalize_text(text, locale="en-US", return_spans=False)

Normalize text for TTS without generating audio.

python
from kittentts import normalize_text

normalized = normalize_text("Dr. Rivera paid $12.50 at 3:05 p.m.")
# "Doctor Rivera paid twelve dollars and fifty cents at three oh five p m."

result = normalize_text("Fig. 2", return_spans=True)
print(result.text)
print(result.spans)

When return_spans=True, the result includes original-to-normalized character spans for changed segments such as abbreviations, dates, times, numbers, currency, URLs, and punctuation.

model.available_voices

Returns a list of available voice names: ['Bella', 'Jasper', 'Luna', 'Bruno', 'Rosie', 'Hugo', 'Kiki', 'Leo']

System Requirements

  • Operating system: Linux, macOS, or Windows
  • Python: 3.8 or later
  • Hardware: Runs on CPU; no GPU required
  • Disk space: 25-80 MB depending on model variant

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

Roadmap

  • Release optimized inference engine
  • Release mobile SDK
  • Release higher quality TTS models
  • Release multilingual TTS
  • Release KittenASR
  • Need anything else? Let us know

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 or email [email protected] to discuss your requirements.

Community and Support

  • Discord: Join the community
  • Website: kittenml.com
  • Custom support: Request form
  • Email: [email protected]
  • Issues: GitHub Issues

License

This project is licensed under the Apache License 2.0.

Issues· 121 开放

查看全部 Issues在 GitHub 打开
  • #106

    流式传输支持

    更新于 2026年8月15日
  • #151

    谐波源: 会话非确定性 (图中 RNG) 和 float32 阶段累加 (fp16 / 长形式限制)

    更新于 2026年7月30日
  • #133

    如何找到这种小型的语音转文字 LLM 模型,请不要低声细语

    更新于 2026年7月20日
  • #140

    特性:FunASR/SenseVoice 用于训练数据标注

    更新于 2026年7月14日
  • #84

    建筑学?

    更新于 2026年7月12日
  • #7

    培训详情

    更新于 2026年7月12日
  • #125

    将 Python 替换为 Rust

    更新于 2026年7月9日
  • #118

    为什么 Misaki 包含在要求文件中?

    更新于 2026年7月7日
  • #149

    特性: 启用系统原生的 espeak-ng。

    更新于 2026年7月6日
  • #71

    无法使用 pip 安装

    更新于 2026年7月5日

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言