API Reference
Classes
Section titled “Classes”AudioTTSModule
Section titled “AudioTTSModule”Text-to-speech generation integration.
AudioTTSProvider
Section titled “AudioTTSProvider”Provider that registers a configured TTSProvider backend.
No async I/O needed at boot beyond what register() already did — matches AIProvider.boot() only doing optional-collaborator resolution, which happened above in register() here since credentials/resilience must be known before constructing the backend instance.
ChatterboxTTSProvider
Section titled “ChatterboxTTSProvider”Talks to a chatterbox_server.py reference server via TTSProvider.
ElevenLabsTTSProvider
Section titled “ElevenLabsTTSProvider”Calls the ElevenLabs text-to-speech API.
F5TTSProvider
Section titled “F5TTSProvider”Talks to an f5_tts_server.py reference server via TTSProvider.
KokoroTTSProvider
Section titled “KokoroTTSProvider”Talks to a kokoro_server.py reference server via TTSProvider.
LocalHttpTTSProvider
Section titled “LocalHttpTTSProvider”Talks to a self-hosted TTS HTTP server via the TTSProvider protocol.
No SDK dependency — this is the always-available zero-extra backend.
OpenAITTSProvider
Section titled “OpenAITTSProvider”Calls the OpenAI (or an OpenAI-compatible-gateway) text-to-speech API.
base_url is configurable rather than hardcoded to api.openai.com so
this can point at a self-hosted or third-party gateway that speaks the
same /v1/audio/speech wire shape behind a different model.
PiperTTSProvider
Section titled “PiperTTSProvider”Talks to a piper_server.py reference server via TTSProvider.
TTSConfig
Section titled “TTSConfig”Configuration for the TTS subsystem.
TTSGenerationTask
Section titled “TTSGenerationTask”Callable task handler — wraps a TTSProvider backend for lexigram-tasks.
Returns a plain dict (never raw MediaAsset bytes) because lexigram-tasks’ result store JSON-serializes JobResult. The umbrella wraps this handler during MultimediaProvider.register() to persist any bytes to lexigram-storage BEFORE this dict is constructed — see the “Async job model” section of the design spec.
Exceptions
Section titled “Exceptions”TTSAuthenticationError
Section titled “TTSAuthenticationError”Invalid API key or credentials — infrastructure error, raised not wrapped.