AI Voice Agent

Real-time AI voice agent for document review built with LiveKit and LLMs

Overview

An AI-powered voice agent that lets users interact with documents through natural spoken conversation. Built on LiveKit for real-time audio streaming, the agent listens, understands, and responds β€” turning document review into a hands-free, conversational experience.


Real-time AI voice agent for document review β€” docrevfrontend.vercel.app

πŸŽ™οΈ How It Works

  1. User speaks β€” audio is captured and streamed in real time via LiveKit
  2. Speech-to-text β€” the agent transcribes the audio using a live STT pipeline
  3. LLM reasoning β€” the transcript is passed to an LLM with document context for intelligent responses
  4. Text-to-speech β€” the response is synthesized and streamed back to the user
  5. Document grounding β€” the agent keeps track of the document being reviewed and answers questions about its content

πŸ› οΈ Tech Stack

Component Technology
Real-time audio LiveKit (WebRTC)
Agent framework LiveKit Agents SDK
LLM Claude / OpenAI
Speech-to-text Deepgram / Whisper
Text-to-speech ElevenLabs / Cartesia
Frontend Next.js, deployed on Vercel
Backend Python (FastAPI)

✨ Key Features

  • Low-latency audio β€” sub-second voice response powered by LiveKit’s WebRTC infrastructure
  • Document-aware Q&A β€” upload a document and ask questions about it verbally
  • Interruption handling β€” agent detects when the user starts speaking and stops gracefully
  • Session state β€” conversation history maintained across the session for coherent follow-ups

πŸ”— Live demo: docrevfrontend.vercel.app