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.

Parameters

Constructor parameters for SmallestAITTS. The Python and Node JS SDKs share these field names.

Import paths

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