Overview

SarvamTTSService provides text-to-speech synthesis specialized for Indian languages and voices. The service offers extensive voice customization options including pitch, pace, and loudness control, with support for multiple Indian languages and preprocessing for mixed-language content.

Installation

To use Sarvam AI services, no additional dependencies are required beyond the base installation:
pip install "pipecat-ai"

Prerequisites

Sarvam AI Account Setup

Before using Sarvam AI TTS services, you need:
  1. Sarvam AI Account: Sign up at Sarvam AI Console
  2. API Key: Generate an API key from your account dashboard
  3. Language Selection: Choose from available Indian language voices

Required Environment Variables

  • SARVAM_API_KEY: Your Sarvam AI API key for authentication