enough-dentist-75383
02/20/2026, 10:27 AMtall-airline-16756
02/20/2026, 10:27 AMtall-airline-16756
02/20/2026, 10:27 AM.env) as SARVAM_API_KEY.
• Install the Sarvam plugin for LiveKit Agents:
uv add "livekit-agents[sarvam]~=1.3"
• Use the plugin when creating an AgentSession, for example:
from livekit.plugins import sarvam
session = AgentSession(
tts=sarvam.TTS(
target_language_code="hi-IN",
speaker="anushka",
)
)
If you did not mean Sarvam, please tell me:
• The exact service name (spelling), and
• Where you want to use the key (server-side environment, AgentSession config, client-side), and
• The language/runtime you’re using (Python, Node, etc.)
With that I’ll give the exact steps to wire the correct API key into your LiveKit TTS setup.
Sources: Sarvam TTS plugin guide | LiveKit Documentation