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 sameDocumentation Index
Fetch the complete documentation index at: https://docs.gradium.ai/llms.txt
Use this file to discover all available pages before exploring further.
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:Basic agent session
Usegradium.STT() to transcribe user audio and gradium.TTS() to synthesize agent replies.
Configuration
Common Gradium options in LiveKit Agents:| Setting | Applies to | Description |
|---|---|---|
api_key | STT, TTS | Gradium API key. Defaults to GRADIUM_API_KEY. |
model_endpoint | STT, TTS | Gradium WebSocket endpoint. Use the US endpoint when you need US-region routing. |
model_name | STT, TTS | Gradium model name. Defaults to default. |
voice_id | TTS | Gradium voice ID for synthesized replies. Defaults to Emma. |
pronunciation_id | TTS | Optional Gradium pronunciation dictionary ID. |
json_config | TTS | Advanced TTS settings such as speed and rewrite rules. |
vad_threshold | STT | Semantic VAD threshold for detecting when the user has finished speaking. |
vad_bucket | STT | Semantic VAD timing bucket. |
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.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.