Skip to main content
Smallest AI is a text-to-speech plugin built for very low latency. It synthesizes the LLM’s reply into the agent’s voice using the Lightning model family. It occupies the pipeline’s tts slot.

Setup

Set your Smallest AI API key in the worker environment. Generate a key from the Smallest AI console:

Usage

Import the plugin and pass it to the pipeline’s tts slot.
The default model is lightning_v3.1 in the Python SDK and lightning in the JavaScript and Go SDKs.

Parameters

Constructor parameters for the Python SDK (SmallestAITTS). The JavaScript and Go SDKs expose voice_id/voiceId/VoiceID and model in their idiomatic form.

Import paths

The synthesized audio is streamed back to the caller as the final stage of the pipeline.