Build a real-time voice AI restaurant assistant. Integrate LiveKit for WebRTC audio, Deepgram for speech-to-text and text-to-speech, and enable voice agents to call tools and manage order state.
Start learning at learnwithparam.com. Regional pricing available with discounts of up to 60%.
- Real-time voice AI with LiveKit
- STT/TTS with Deepgram
- Voice agent architecture
- Tool calling for voice agents
- LiveKit - Real-time WebRTC audio streaming
- Deepgram - Speech-to-text and text-to-speech
- FastAPI - High-performance async Python web framework
- LLM Provider Pattern - Supports Fireworks, OpenRouter, OpenAI
- Pydantic - Data validation and type safety
- Docker - Containerized development
- Python 3.11+
- uv (installed automatically by
make setup) - API keys for LiveKit, Deepgram, and an LLM provider
# One command to set up and run
make dev
# Or step by step:
make setup # Create .env and install dependencies
# Edit .env with your API keys
make run # Start the FastAPI server
make run-agent # Start the LiveKit voice agent worker (separate terminal)make build # Build the Docker image
make up # Start the container
make logs # View logs
make down # Stop the containerOnce running, open http://localhost:8000/docs for the interactive Swagger UI.
Work through these incrementally to build the full application:
- The First Connection - Set up LiveKit room and generate access tokens
- The Basic Agent - Create a voice agent with STT, LLM, and TTS
- The Menu Tool - Add a tool for the agent to read menu items
- The Order Tool - Add a tool to add items to the customer's order
- The Order View Tool - Add a tool to view the current order
- The Place Order Tool - Add a tool to finalize and place orders
- The Frontend Integration - Connect a web frontend to the voice agent
- Enhanced Features - Add personalization, error handling, and advanced features
make help Show all available commands
make setup Initial setup (create .env, install deps)
make dev Setup and run (one command!)
make run Start FastAPI server
make run-agent Start the LiveKit voice agent worker
make build Build Docker image
make up Start container
make down Stop container
make clean Remove venv and cache
- Start the course: learnwithparam.com/courses/voice-ai-agents-livekit
- AI Bootcamp for Software Engineers: learnwithparam.com/ai-bootcamp
- All courses: learnwithparam.com/courses