Documentation
¶
Overview ¶
Package ttsroute holds the single source of truth that maps a Voice-Output profile ID to the provider name the TTS routers use internally.
It is a zero-dependency leaf package so that the public embeddable surface (pkg/speechkit/tts) and the host wiring (app/internal/ttswiring) share one mapping without violating the OSS boundary (pkg/** must not import app/internal/*). Keep the prefixes in sync with the TTS catalog entries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PreferredProvider ¶
PreferredProvider maps a Voice-Output profile ID to the provider name. It returns the empty string when the profile is unknown or unset — callers should treat that as "no preference, use default strategy ordering".
Mapping:
tts.openai.* → "openai" tts.google.gemini-* → "gemini" (Gemini API speech) tts.google.* → "google" tts.deepgram.* → "deepgram" tts.huggingface.* → "huggingface" tts.foundry.* → "foundry" tts.xai.* → "xai" (opt-in xAI Grok Voice) tts.openedai.* / tts.kokoro.* → "kokoro" (OpenAI-compatible self-hosted endpoint) tts.local.kokoro* → "kokoro_local" (ONNX in-process) tts.local.supertonic* → "supertonic_local" (ONNX in-process, multilingual) tts.local.chatterbox* → "chatterbox_local" (ONNX in-process, voice-clone) tts.local.piper / tts.local.piper-* → "piper" (Piper subprocess) tts.local.sherpa-piper → "sherpa_piper" (bundled Piper voices via sherpa-onnx)
Types ¶
This section is empty.