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.

Parameters

Constructor parameters for SarvamAITTS. The Python and Node JS SDKs share these field names. The synthesized audio is streamed back to the caller as the final stage of the pipeline.

Inference models

These SarvamAI models also run through the Inference Gateway on your Zero Runtime auth token, with no SarvamAI API key. Pass the model id to the same class imported from zeroruntime.inference (Python) or @zeroruntime/js-sdk/inference (Node JS).