Skip to main content
Build a voice agent using Sarvam for both speech recognition and synthesis, with OpenAI GPT-4o for conversation. Optimized for Indian languages. Best for: Voice agents serving Indian language speakers with high-accuracy recognition and natural Indian voices.

Prerequisites


Installation


Environment Variables


Pipeline Configuration


Service Details

Sarvam STT

Real-time speech recognition optimized for Indian languages via WebSocket streaming.

OpenAI LLM

Chat completion with GPT-4o supporting streaming responses and function calling.

Sarvam TTS

Text-to-speech synthesis specialized for Indian languages and voices.

Supported Indian Languages

Sarvam supports multiple Indian languages including:
  • Hindi
  • Tamil
  • Telugu
  • Kannada
  • Malayalam
  • Bengali
  • Marathi
  • Gujarati
  • And more

Quick Start

Inbound Calls

Configure your Plivo number’s Answer URL to your ngrok URL.

Outbound Calls


When to Use Sarvam

Choose Sarvam when:
  • Your users speak Indian languages
  • You need high accuracy for Indian accents and dialects
  • You want natural-sounding Indian voices
  • Your content mixes English with Indian languages
Choose Deepgram + other TTS when:
  • Your users primarily speak English or European languages
  • You need broader language coverage
  • You’re not targeting Indian markets