Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 978 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 978 Bytes

Cartesia Voice Agent Example

This is a demo of a LiveKit Voice Pipeline Agent using Cartesia and GPT-4o-mini.

The example includes a custom Next.js frontend and Python agent.

Live Demo

https://cartesia-assistant.vercel.app/

Screenshot of the Cartesia Voice Agent Example

Running the example

Prerequisites

  • Node.js
  • Python 3.9-3.12
  • LiveKit Cloud account (or OSS LiveKit server)
  • Cartesia API key (for speech synthesis)
  • OpenAI API key (for LLM)
  • Deepgram API key (for speech-to-text)

Frontend

Copy .env.example to .env.local and set the environment variables. Then run:

cd frontend
npm install
npm run dev

Agent

Copy .env.example to .env and set the environment variables. Then run:

cd agent
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python main.py dev