lattice/livekit-integration
Real-time audio/video communication for AI agents with Lattice Runtime
module "livekit-integration" {
source = "registry.latticeruntime.com/lattice/livekit-integration/lattice"
version = "1.0.0"
# Configure module inputs
agent_id = lattice_agent.main.id
}| Name | Description | Type | Default |
|---|---|---|---|
enable_voice | Enable voice communication | bool | true |
enable_video | Enable video communication | bool | false |
room_prefix | Prefix for LiveKit room names | string | "lattice" |
sample_rate | Audio sample rate in Hz | number | 48000 |
channels | Number of audio channels | number | 1 |
capabilities | List of agent capabilities | list(string) | [] |
| Name | Description |
|---|---|
websocket_endpoint | The WebSocket endpoint for real-time communication |
This module provides seamless integration between Lattice Runtime and LiveKit for building real-time voice and video AI agent applications.
module "livekit" {
source = "registry.latticeruntime.com/lattice/livekit-integration/lattice"
version = "1.0.0"
agent_id = lattice_agent.main.id
# Configure LiveKit integration
enable_voice = true
enable_video = false
room_prefix = "agent"
# Audio configuration
sample_rate = 48000
channels = 1
# Agent capabilities
capabilities = [
"voice_activity_detection",
"speech_to_text",
"text_to_speech"
]
}
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
agent_id |
The ID of the Lattice agent | string |
- | yes |
enable_voice |
Enable voice communication | bool |
true |
no |
enable_video |
Enable video communication | bool |
false |
no |
room_prefix |
Prefix for LiveKit room names | string |
"lattice" |
no |
sample_rate |
Audio sample rate in Hz | number |
48000 |
no |
channels |
Number of audio channels | number |
1 |
no |
capabilities |
List of agent capabilities | list(string) |
[] |
no |
| Name | Description |
|---|---|
room_url |
The LiveKit room connection URL |
websocket_endpoint |
The WebSocket endpoint for real-time communication |
Add to your Lattice template:
source = "registry.latticeruntime.com/lattice/livekit-integration/lattice"