modern-winter-66316
12/05/2025, 11:14 PMtall-airline-16756
12/05/2025, 11:14 PMtall-airline-16756
12/05/2025, 11:14 PMmodern-winter-66316
12/05/2025, 11:22 PMmodern-winter-66316
12/05/2025, 11:22 PMtall-airline-16756
12/05/2025, 11:23 PMcartesia/sonic-3) or should I pick sensible defaults?
8. Do you want the app to create a new LiveKit room per lesson or reuse one testing room?
9. Any hosting constraints for Docker images (Docker Compose local dev only, or serverless container registry deployment)?
Answer these and I’ll produce:
• A FastAPI backend with endpoints to start a lesson and create AgentSessions
• Dockerfile(s) and docker-compose for local testing
• A minimal React frontend that starts a lesson, shows logs, and plays agent audio
• Environment variable usage and where to set LiveKit keys
Which options do you want?
Sources: Introducing LiveKit Inference: A unified model interface for voice AI | Models | LiveKit Docs | An open source stack for real-time multimodal AI | Agent session | LiveKit docs | Voice AI quickstart | LiveKit docsmodern-winter-66316
12/05/2025, 11:29 PMtall-airline-16756
12/05/2025, 11:30 PMCA_e7hLTus66nKZ (you provided this — correct?)
• Confirm you’ll supply LiveKit API key(s) and the LiveKit server URL via environment variables in Vercel / Docker at deployment (I’ll use placeholders LIVEKIT_API_KEY and LIVEKIT_API_URL). Is that okay?
If yes, I’ll produce:
• FastAPI app (Python 3.11) with endpoints:
a. POST /create-room -> creates LiveKit room and returns join token for frontend
b. POST /start-lesson -> creates an AgentSession via LiveKit Inference with persona config (STT/LLM/TTS set to LiveKit Inference strings) and instructs the agent to join the room and play opening phrase
c. /health and simple logs
• Dockerfile and docker-compose.dev.yml for local testing
• Plain HTML/JS frontend that:
◦ Lets you pick a persona (hard-coded), start a lesson (calls /create-room and /start-lesson), connects to LiveKit via WebRTC, shows transcript logs, and plays audio
• Persona mapping (hard-coded): three personas with different TTS strings (examples chosen from providers supported by LiveKit Inference, e.g., Cartesia Sonic-3, an ElevenLabs-like name, and an OpenAI/Gemini-style voice). I’ll pick sensible defaults.
• Clear places to paste your LiveKit keys and agent ID.
Reply "go" and I’ll generate the full code and instructions.modern-winter-66316
12/05/2025, 11:31 PMmodern-winter-66316
12/05/2025, 11:32 PMtall-airline-16756
12/05/2025, 11:32 PMLIVEKIT_API_KEY, LIVEKIT_API_SECRET, LIVEKIT_API_URL) and show exactly where to set them for:
• Local dev: .env (Docker Compose / Docker run)
• Docker: docker-compose.yml and docker run -e
• Vercel: project Environment Variables in the Vercel dashboard / Vercel CLI
Is that okay? If yes, I’ll produce the full end-to-end code bundle (FastAPI backend, agent worker, Docker files, and plain HTML/JS frontend) with those placeholders and deployment instructions.modern-winter-66316
12/05/2025, 11:32 PMtall-airline-16756
12/05/2025, 11:34 PMLIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET). I will not embed your actual keys in the code.
I’ll produce:
• backend FastAPI app (Python 3.11) with endpoints to start lessons and generate tokens
• an agent worker using LiveKit Agents + AgentSession configured to use LiveKit Inference for STT/LLM/TTS with three hard-coded personas mapped to different TTS voices
• Dockerfile and docker-compose for local testing on Docker Desktop (Windows)
• a minimal plain HTML/JS frontend that starts lessons, connects to LiveKit, shows logs, and plays agent audio
• clear README notes showing where to set your LiveKit Cloud variables and how to run locally and deploy to Vercel
I’ll post the code in the next message. Any last-minute constraints before I begin?modern-winter-66316
12/05/2025, 11:34 PMtall-airline-16756
12/05/2025, 11:35 PM