Skip to main content
LiveKit Agents is a framework for realtime voice AI over WebRTC, SIP, and streaming media. The Gradium plugin lets a LiveKit agent use Gradium for speech-to-text, text-to-speech, or both inside the same AgentSession.

Gradium TTS plugin

LiveKit’s guide to Gradium text-to-speech.

Gradium STT plugin

LiveKit’s guide to Gradium speech-to-text.

Plugin reference

Python API reference for livekit.plugins.gradium.

Gradium guide

End-to-end Gradium and LiveKit voice agent walkthrough.

Install

Install LiveKit Agents with the Gradium plugin extra:
Set the required credentials in your environment:

Basic agent session

Use gradium.STT() to transcribe user audio and gradium.TTS() to synthesize agent replies.
You can also use only one side of Gradium. For example, keep an existing STT provider and use Gradium just for speech output:

Configuration

Common Gradium options in LiveKit Agents:

Custom pronunciation

Pass a Gradium pronunciation dictionary ID into the TTS plugin when an agent needs brand names, product names, or domain-specific terms spoken consistently.
For lower-level pronunciation and rewrite behavior, see Pronunciation Dictionaries and Voice Settings.

When to use LiveKit with Gradium

  • Realtime voice agents: run a complete STT, LLM, and TTS loop in AgentSession.
  • WebRTC applications: connect browser and mobile users to Gradium-powered speech through LiveKit rooms.
  • Telephony agents: use LiveKit SIP while keeping Gradium as the speech model layer.
  • Production deployments: deploy LiveKit agents with managed rooms, credentials, and worker processes.