unitts gathers local and self-hosted text-to-speech models behind one Python interface. Call supported engines the same way; new engines are added one at a time. Model licenses vary, including open-source and research-only weights.
Requires Python 3.10+ and uv. Choose an engine from the table below; one command installs UNITTS and its dependencies in a dedicated Python 3.12 environment.
git clone https://github.com/aynursusuz/unitts.git
cd unitts
python3 scripts/setup.py --engine moss-tts # change the engine name to select a model
source .venv-moss-tts/bin/activateTo switch models, rerun the same command with another engine name and activate the environment printed by setup. Setup checks prerequisites and reports missing packages or system libraries with repair instructions. Weights download on first use.
For higgs-tts, the same setup command also installs its server. After activating .venv-higgs-tts, run unitts serve --engine higgs-tts in another terminal before inference. Stop the server with Ctrl+C when finished.
from unitts.engines import get_engine
engine = get_engine("moss-tts") # use the engine installed above; names are in the table
try:
engine.synthesize_to_file("Hello world!", "out.wav")
finally:
engine.unload_model()Use get_engine("moss-tts", language="tr") for Turkish. Higgs detects the language automatically. For MOSS or Higgs voice cloning, pass ref_audio="ref.wav" to synthesize_to_file; Higgs also accepts ref_text. NeuTTS requires both reference audio and its transcript. Model-specific options are documented in each adapter.
unitts list-engines
unitts synthesize "Hello world!" --engine moss-tts --output out.wav
unitts benchmark --engine moss-ttsbenchmark writes one JSON to benchmarks/results/<engine>.json and one WAV to benchmarks/audio_samples/<engine>.wav. Use the Python API for language selection, reference audio and generation options.
| Engine | Name for setup / Python | Type | Voice cloning | License | Status |
|---|---|---|---|---|---|
| Chatterbox | chatterbox |
local | yes | MIT | integrated |
| MOSS-TTS v1.5 | moss-tts |
local | yes | Apache-2.0 | integrated |
| Higgs TTS 3 4B | higgs-tts |
self-hosted HTTP | yes | Boson Research and Non-Commercial | integrated |
| Fish Audio s2-pro | fish-audio |
local | yes | Fish Audio Research License | integrated |
| Qwen3-TTS | qwen3-tts |
local | yes | Apache-2.0 | integrated |
| Echo-TTS | echo-tts |
local | yes | CC-BY-NC-SA-4.0 (weights) | integrated |
| Kokoro | kokoro |
local | no | Apache-2.0 | integrated |
| Supertonic | supertonic |
local | no | OpenRAIL-M (weights) | integrated |
| NeuTTS | neutts |
local | yes | Apache-2.0 | integrated |
| Engine | GPU | RTF | Inference (s) | Audio (s) | VRAM (MiB) | Sample rate |
|---|---|---|---|---|---|---|
| Chatterbox | A100 | 0.44 | 5.90 | 13.52 | 3,107 | 24,000 |
| Fish Audio s2-pro | A100 | 4.00 | 38.29 | 9.57 | 19,105 | 44,100 |
| Qwen3-TTS | H100 | 1.07 | 22.61 | 21.12 | 4,014 | 24,000 |
| Echo-TTS | H100 | 0.14 | 4.05 | 28.42 | 6,486 | 44,100 |
| MOSS-TTS v1.5 | RTX 6000 Ada | 0.487 | 2.57 | 5.28 | 23,168* | 24,000 |
| Higgs TTS 3 4B | RTX 6000 Ada | 0.284 | 1.58 | 5.56 | — | 24,000 |
RTF = inference time / audio duration; lower is faster. GPUs and input texts differ. MOSS and Higgs are single warm Turkish samples, excluding model loading; Higgs timing includes HTTP and WAV decoding. These measurements are not a controlled speed or quality ranking. Fish Audio was measured without --compile.
VRAM values are allocated-memory snapshots; * marks peak allocation for the MOSS sample. — means server VRAM was not measured. Row links contain full results; listen to the audio samples.
Use unitts benchmark --engine <name> for a basic run. For multilingual and cloning checks, run benchmarks/gpu_smoke_test.py with --engine moss-tts or --engine higgs-tts and --output-dir <directory> on a CUDA host; start the Higgs server first and pass --base-url http://127.0.0.1:8000.
- Add
src/unitts/engines/<name>_engine.py - Subclass
TTSEngine, implementload_model()andsynthesize(), decorate with@register_engine - Add required packages to
pyproject.tomlextras and a setup recipe toscripts/setup.py - Add a unit test under
tests/unit/
UNITTS is Apache 2.0 (see LICENSE). Each model keeps its upstream license, listed in the Engines table. See NOTICE for third-party notices and usage terms.
Built with Fish Audio. Commercial use of Fish Audio s2-pro requires a separate license from Fish Audio.
Built with Higgs TTS 3 licensed from Boson AI USA, Inc. Its license permits research, non-commercial use and attributed creator content. Hosted APIs and product/service integration require a separate commercial license.