ttsroute

package
v0.76.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Stability: Beta — API-checked; may change with a changelog callout.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PreferredProvider

func PreferredProvider(profileID string) string

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.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)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL