Example applications and code snippets for LiveKit Agents
This repository contains example code and demo applications for LiveKit Agents, a suite of tools for building, deploying, and scaling real-time voice and video AI agents.
LiveKit Agents
LiveKit Agents is a Python library that enables you to build intelligent conversational agents with speech, text, and media capabilities. This repository contains examples that demonstrate how to use various features of the library.
Set Up & Installation
To use these examples, first clone the repository and then install the required dependencies:
git clone https://github.com/livekit-examples/python-agents-examples.git cd python-agents-examples python3 -m venv venv source venv/bin/activate pip install -r requirements.txt
Key Features of LiveKit Agents
- 🗣️ Speech and Voice Processing - Built-in STT, TTS, and VAD capabilities for natural conversations.
- 💬 Comprehensive LLM Support - Integrate with OpenAI, Anthropic, Google, and more.
- 📞 Telephony Integration - Make and receive SIP calls with your agents.
- 📊 Metrics and Monitoring - Track and analyze agent performance.
- 🔄 Real-time Processing - Stream audio, text, and video in real-time.
- 📱 Multi-modal Capabilities - Handle text, audio, and video simultaneously.
- 🌐 Multilingual Support - Transcribe and respond in multiple languages.
- 🧩 Extensible Plugin System - Add custom capabilities to your agents.
Official Documentation
For full documentation of LiveKit Agents, visit https://docs.livekit.io/agents/
Example Demos
Code Examples by Category
Basic Features
- Listen and Respond
- Uninterruptable Agent
- Playing Audio
- Function Calling
- Context Variables
- Sound Repeater
