Skip to main content

Local TTS router — multi-backend (MLX, VibeVoice), DashScope + OpenAI compatible

Project description

tts-router

Local TTS router for Apple Silicon — multi-backend, OpenAI-compatible API.

Pull models, serve an API, or synthesize speech directly from the command line.

Install

pip install tts-router
# or
uv pip install tts-router

Requires Python 3.11+ and macOS with Apple Silicon (M1/M2/M3/M4).

Quick Start

# List available models
tts-router list

# Download a model
tts-router pull qwen3-tts

# Synthesize speech
tts-router say "Hello world" -o hello.wav

# Start the API server (OpenAI-compatible)
tts-router serve

Commands

Command Description
tts-router list List available models and download status
tts-router pull <model> Download model weights from HuggingFace
tts-router say <text> Synthesize speech from the command line
tts-router serve Start the TTS API server with web playground

Models

Supports multiple TTS models through a unified interface:

  • Qwen3-TTS — Multi-speaker with emotion control and voice cloning (MLX)
  • Kokoro — Fast, lightweight TTS with many voices (MLX)
  • Dia — Dialogue generation with speaker tags (MLX)
  • Orpheus — Expressive speech with emotion tags (MLX)
  • Chatterbox — Voice cloning with emotion exaggeration (MLX)
  • VibeVoice — Microsoft's multi-speaker long-form TTS (PyTorch, optional)

Run tts-router list to see all available models.

Voice Cloning

# Clone a voice from a reference audio clip
tts-router say "Text to speak" --ref-audio reference.wav -o output.wav

The model automatically switches to a clone-capable variant when --ref-audio is provided.

API Server

tts-router serve --port 8091

Starts an OpenAI-compatible /v1/audio/speech endpoint with a built-in web playground at http://localhost:8091/.

Options

tts-router say --help

Key options: --voice, --model, --format (wav/mp3/flac/aac/opus), --speed, --instruct, --ref-audio, --ref-text, --temperature, --exaggeration.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tts_router-0.1.0.tar.gz (273.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tts_router-0.1.0-py3-none-any.whl (47.8 kB view details)

Uploaded Python 3

File details

Details for the file tts_router-0.1.0.tar.gz.

File metadata

  • Download URL: tts_router-0.1.0.tar.gz
  • Upload date:
  • Size: 273.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tts_router-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5a69920acb9e118fb37c8b45faba7168a4f65be3e5c0350066f2d9fe9627a9da
MD5 f7d5fb73aea0d312f0790c9efa828f66
BLAKE2b-256 af4574060a3c90a4380d87ca9f186c6be6bea5fa81fc075f6530aba228050dfc

See more details on using hashes here.

Provenance

The following attestation bundles were made for tts_router-0.1.0.tar.gz:

Publisher: publish.yml on hrhrng/tts-router

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tts_router-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tts_router-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 47.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tts_router-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d408ff3b81c001cc57d3413d26d3f2f968bb8354ced804686322e59c44146488
MD5 adc4a331502ec84c53120c0303404e20
BLAKE2b-256 baf624ae61086c4cab410fe9c687ec01b3c571e4121ef1fdfa95b2469a6924c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for tts_router-0.1.0-py3-none-any.whl:

Publisher: publish.yml on hrhrng/tts-router

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page