Speaky
Text‑to‑Speech with Voice Cloning made easy with Chatterbox TTS
Generate natural‑sounding speech from plain text—locally on your GPU/CPU using a single, ergonomic command‑line tool.
Features
- Voice cloning from a short audio prompt (optional)
- Built‑in voices accessible via
-v NAME(or-v ALLfor every voice) - Emotion control via exaggeration & classifier‑free guidance
- Device auto‑detection — Apple Silicon (mps), CUDA GPUs, or CPU
- Smart sentence chunking (NLTK) to handle long passages gracefully
- Trailing‑silence trimming so outputs end crisply
- Glitch / clipping detection heuristic for cleaner audio
- Verification via transcription (Distil‑Whisper) to catch missing words
🚀 Quickstart (CLI)
Run without installation:
uvx speak "Do or do not. There is no try." --voice vader
or install first:
uv tool install speaky
speak --file speech.txt --voice attenborough
Run speak --help for the full list of options.
🐍 Python API
from pathlib import Path
from speaky.core import batch_synthesize
batch_synthesize(
inputs=[("Hello there!", "greeting")], # (text, stem)
output_dir=Path("out"),
)
Examples
https://github.com/user-attachments/assets/f1956d1a-c407-4944-b9f8-a5402f71cbd8
https://github.com/user-attachments/assets/8e6a81df-773c-4d48-876b-4cced0b4f643
https://github.com/user-attachments/assets/2c2884e2-759a-4b1d-884c-c1d5eed9ddf0
https://github.com/user-attachments/assets/2d70a497-b156-40d8-907f-0beb33ea68d6
https://github.com/user-attachments/assets/0ab6195d-ae9e-420e-bde2-719dad772563
https://github.com/user-attachments/assets/aeabd1d9-3839-4190-8460-8ad2e364dd02
Credit
This project is built on top of chatterbox open-source TTS.
Development
Quick Commands
make initcreate the environment and install dependenciesmake helpsee available commandsmake afformat codemake lintrun lintermake typecheckrun type checkermake testrun testsmake checkrun all checks (format, lint, typecheck, test)uv add pkgadd a python dependencyuv run -- python foo/bar.pyrun arbitrary command in python env
Code Conventions
- Always run
make checkuafter making changes.
Testing
- Use pytest (no test classes).
- Always set
match=inpytest.raises. - Prefer
monkeypatchover other mocks. - Mirror the source-tree layout in
tests/.
Exceptions
- Catch only specific exceptions—never blanket
except:blocks. - Don't raise bare
Exception.
Python
- Manage env/deps with uv (
uv add|remove,uv run -- ...). - No logging config or side-effects at import time.
- Keep interfaces (CLI, web, etc.) thin; put logic elsewhere.
- Use
typerfor CLI interfaces,fastapifor web interfaces, andpydanticfor data models.
Metadata
Release files for speaky 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| speaky-0.1.1.tar.gz | 4.3 MB | Without provenance | Details for speaky-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| speaky-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for speaky-0.1.1-py3-none-any.whl |
Total release size: 6.0 MB
Release files / speaky-0.1.1.tar.gz
| Download URL | speaky-0.1.1.tar.gz |
|---|---|
| Size | 4.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e16a5327d7f3d826598fe74eaabacc0316b2439c2d1ca22c9c764b2e2db40ca1
|
|
BLAKE2b-256 checksum How to use checksums |
d0ce74d5356d8773384f7acbceeb437b8296017a8da226799db916125704704a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / speaky-0.1.1-py3-none-any.whl
| Download URL | speaky-0.1.1-py3-none-any.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9fa6392ab6d396c6feace2b75ee2b1fd3c4c4bfd375e3875227405b5b3e2cb1
|
|
BLAKE2b-256 checksum How to use checksums |
e52808e2119d60aa2e423b053069ec7ec17d62fb30b18cd7491e0633bac65807
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for speaky 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.