Skip to main content
Sarvam AI is a text-to-speech plugin that synthesizes the LLM’s reply into the agent’s voice across 11 Indic languages using the bulbul model family. It occupies the pipeline’s tts slot.

Setup

Set your Sarvam AI API key in the worker environment. Generate a key from the Sarvam AI dashboard:

Usage

Import the plugin and pass it to the pipeline’s tts slot.
Python

Parameters

Constructor parameters for the Python SDK (SarvamAITTS). The synthesized audio is streamed back to the caller as the final stage of the pipeline.