Implement tiered TTS provider architecture #391

Closed
opened 2026-02-15 07:33:32 +00:00 by jason.woltje · 1 comment
Owner

Description

Implement the tiered TTS provider system with three backends, all using the OpenAI-compatible endpoint pattern.

Tiers

Default: Kokoro-FastAPI

  • URL:
  • Runs on CPU, always available
  • 54 voices, 8 languages
  • Apache 2.0 license

Premium: Chatterbox-TTS-Server

  • URL:
  • Requires GPU, optional deployment
  • Voice cloning from reference audio
  • Emotion control parameter
  • MIT license

Lightweight: Piper via OpenedAI Speech

  • URL:
  • Ultra-lightweight CPU fallback
  • 100+ voices, 40+ languages
  • GPL license

Provider Selection Logic

Environment Variables

Acceptance Criteria

  • KokoroTtsProvider implements ITTSProvider
  • ChatterboxTtsProvider implements ITTSProvider (voice cloning support)
  • PiperTtsProvider implements ITTSProvider
  • Fallback chain works (premium → default → lightweight)
  • Each provider configurable via environment variables
  • Unit tests for each provider + fallback logic
## Description Implement the tiered TTS provider system with three backends, all using the OpenAI-compatible endpoint pattern. ## Tiers ### Default: Kokoro-FastAPI - URL: - Runs on CPU, always available - 54 voices, 8 languages - Apache 2.0 license ### Premium: Chatterbox-TTS-Server - URL: - Requires GPU, optional deployment - Voice cloning from reference audio - Emotion control parameter - MIT license ### Lightweight: Piper via OpenedAI Speech - URL: - Ultra-lightweight CPU fallback - 100+ voices, 40+ languages - GPL license ## Provider Selection Logic ## Environment Variables ## Acceptance Criteria - [ ] KokoroTtsProvider implements ITTSProvider - [ ] ChatterboxTtsProvider implements ITTSProvider (voice cloning support) - [ ] PiperTtsProvider implements ITTSProvider - [ ] Fallback chain works (premium → default → lightweight) - [ ] Each provider configurable via environment variables - [ ] Unit tests for each provider + fallback logic
jason.woltje added this to the M13-SpeechServices (0.0.13) milestone 2026-02-15 07:33:32 +00:00
Author
Owner

Completed as part of M13-SpeechServices milestone on branch feature/m13-speech-services. SP-TTS-001: Tiered TTS provider architecture (commit b5edb4f, 30 tests). All quality gates passed (lint, typecheck, tests, security).

Completed as part of M13-SpeechServices milestone on branch feature/m13-speech-services. SP-TTS-001: Tiered TTS provider architecture (commit b5edb4f, 30 tests). All quality gates passed (lint, typecheck, tests, security).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#391