how we calls arvam api key in livekit tts
# ask-ai
e
how we calls arvam api key in livekit tts
t
Thanks for reaching out, Guess. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I want to make sure I understand correctly: by "Arvam" do you mean Sarvam (the TTS provider LiveKit supports)? I don't see "Arvam" in LiveKit docs, but if you meant Sarvam I can show how to supply its API key to LiveKit TTS. If you did mean Sarvam: • Set the Sarvam API key in your environment (for example, in
.env
) as
SARVAM_API_KEY
. • Install the Sarvam plugin for LiveKit Agents:
Copy code
uv add "livekit-agents[sarvam]~=1.3"
• Use the plugin when creating an AgentSession, for example:
Copy code
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