Registry / ai-ml / livekit-plugins-sarvam

livekit-plugins-sarvam

JSON →
library1.5.18pypypiunverified

LiveKit plugin for integrating Sarvam.ai's speech-to-text, text-to-speech, and translation APIs into AI agent pipelines. Version 1.5.18 supports Python >=3.10, part of the LiveKit Agents ecosystem. Release cadence follows livekit-plugins updates.

pip install livekit-plugins-sarvam
INSTALL
IMPORT
SIG · LIVEKIT-PLUGINS-SA
L
livekit-plugins-sarvam
ai-mlpythonv1.5.18
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SarvamSTT
from livekit.plugins.sarvam import SarvamSTT
from livekit.plugins.sarvam import SarvamSTT

Initialize Sarvam STT and TTS with API key, then plug into a LiveKit VoicePipelineAgent.

import os from livekit import agents from livekit.plugins import sarvam # Set environment variables or use constructor args os.environ['SARVAM_API_KEY'] = 'your-api-key' # Create STT and TTS instances stt = sarvam.SarvamSTT( api_key=os.environ.get('SARVAM_API_KEY', '') ) tts = sarvam.SarvamTTS( api_key=os.environ.get('SARVAM_API_KEY', ''), voice='meera' # optional, default is 'meera' ) # Use with LiveKit Agent pipeline agent = agents.VoicePipelineAgent( vad=agents.SileroVAD(), stt=stt, llm=agents.OpenAI(), tts=tts )
Debug
Known issues
gotchaThe plugin requires a Sarvam.ai subscription. Free tier may have limited rate limits. Test with a small number of concurrent calls.
fix
Check your Sarvam.ai account for rate limits and upgrade if needed.
affects: all
deprecatedIn v1.5.0+, the `api_key` parameter is optional if `SARVAM_API_KEY` environment variable is set. Older versions required explicit `api_key`.
fix
Set `SARVAM_API_KEY` env var or pass `api_key` to constructor.
affects: <1.5.0
gotchaThe `language` parameter in `SarvamSTT` defaults to 'en-IN'. If your use case expects other languages, explicitly set it.
fix
Pass `language='hi-IN'` or desired language code to SarvamSTT.
affects: all
Upgrade
Version history
1.5.18latest on PyPI · released Jun 5, 2026
Audit
Dependencies
livekit-agentsrequiredRequired dependency for agent pipeline integration
Agent activity
16 hits · last 30 days
node
14
Resources
livekit-plugins-sarvam — pip install livekit-plugins-sarvam · libregistry