Files
vh 76314624bb
ci / test (push) Has been cancelled
chatterbox-fast v0.1.0
Sub-second streaming TTS on Chatterbox-Turbo via adaptive buffer-ratchet
chunking. First audio in ~0.5s (vs ~5s one-shot) with no quality compromise —
chunk joins land on natural sentence pauses and the stream converges to one
large near-full-context chunk within 2-3 joins. Works because the engine runs
faster than realtime; the no-starvation guarantee is proven in a GPU-free
simulation (tests/test_scheduler.py).

- chatterbox_fast/scheduler.py: the adaptive-chunk scheduler (pure logic, no GPU)
- chatterbox_fast/app.py: FastAPI server (POST /tts streaming, /voices, /health)
- bench.py: streaming client (ground-truth TTFB + starvation check)
- Self-contained Dockerfile (slim base + chatterbox-tts from PyPI)
- Three public-domain LibriVox starter voices baked in (see voices/ATTRIBUTION.md)

MIT licensed.
2026-06-02 10:43:21 -07:00

44 lines
1.2 KiB
TOML

[project]
name = "chatterbox-fast"
version = "0.1.0"
description = "Sub-second streaming TTS on Chatterbox-Turbo via adaptive buffer-ratchet chunking."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [{ name = "Vuong Hoang" }]
keywords = ["tts", "streaming", "chatterbox", "text-to-speech", "low-latency"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Multimedia :: Sound/Audio :: Speech",
]
dependencies = [
"chatterbox-tts==0.1.6",
"fastapi>=0.110",
"uvicorn[standard]>=0.29",
"pydantic>=2",
]
[project.optional-dependencies]
dev = ["pytest>=8"]
[project.scripts]
chatterbox-fast = "chatterbox_fast.app:main"
[project.urls]
Homepage = "https://gitea.phasefinal.com/vh/chatterbox-fast"
Source = "https://gitea.phasefinal.com/vh/chatterbox-fast"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["chatterbox_fast"]
[tool.pytest.ini_options]
testpaths = ["tests"]
# Make `chatterbox_fast` importable without installing the (GPU-heavy) deps —
# the scheduler tests only touch the pure-stdlib scheduler module.
pythonpath = ["."]