Overview
This plugin allows you to use the Smallest AI Waves platform as a TTS provider for your voice agents.
Installation
Install the plugin from PyPI:
uv add "livekit-agents[smallestai]~=1.5"
Authentication
The Smallest AI plugin requires an API key .
Set SMALLEST_API_KEY in your .env file.
Usage
Use Smallest AI TTS within an AgentSession or as a standalone speech generator. For example, you can use this TTS in the Voice AI quickstart.
from livekit.plugins import smallestaisession = AgentSession(tts=smallestai.TTS(model="lightning_v3.1_pro",voice_id="meher",),# ... llm, stt, etc.)
Parameters
This section describes some of the available parameters. See the plugin reference for a complete list of all available parameters.
model"lightning_v3.1" | "lightning_v3.1_pro"Default: lightning_v3.1_proModel to use. lightning_v3.1_pro provides a curated set of American, British, and Indian voices. lightning_v3.1 is the standard model with 217 voices across 12 languages. For the full list of models and voices, see the Smallest AI docs .
voice_idstringlanguagestringDefault: enLanguage of the synthesized speech. Use auto for automatic detection and mid-sentence language switching. lightning_v3.1_pro supports en, hi, and auto only.
speednumberDefault: 1.0Speech rate, from 0.5 to 2.0.
sample_ratenumberDefault: 24000Target audio sample rate in Hz. Both models render natively at 44.1 kHz, so requesting 44100 avoids downsampling. Supported rates are 8000, 16000, 24000, and 44100. Match the rate to the rest of your audio pipeline to avoid resampling artifacts.
output_format"pcm" | "mp3" | "wav" | "ulaw" | "alaw"Default: pcmEncoding format for synthesized audio. Applies to HTTP synthesize() calls only. WebSocket streaming, which the agent pipeline uses, always returns PCM.
Additional resources
The following resources provide more information about using Smallest AI with LiveKit Agents.
Python package
The livekit-plugins-smallestai package on PyPI.
Plugin reference
Reference for the Smallest AI TTS plugin.
GitHub repo
View the source or contribute to the LiveKit Smallest AI TTS plugin.
Smallest AI docs
Smallest AI's Waves TTS docs.
Smallest AI STT
Guide to the Smallest AI Pulse STT plugin with LiveKit Agents.
Voice AI quickstart
Get started with LiveKit Agents and Smallest AI TTS.