Letta Voice banner
letta-ai letta-ai

Letta Voice

Communication community

Description

Chat with your Letta agents over a low-latency voice connection. Advanced voice mode, but with advanced memory.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Stateful Voice Agents

This repo show how to use Letta and Livekit to create low-latency voice agents with memory, tool execution, and persistence.

Installation & Setup

First install the basic requirements in a virtual enviornment (Python >= 3.10):

git clone git@github.com:letta-ai/letta-voice.git
cd letta-voice 
pip install -r requirements.txt

For this example, you will need accounts with the following providers:

You will also need to set up the following environment variables (or create a `.env` file):

LETTA_API_KEY=... # Letta Cloud API key (if using cloud)

LIVEKIT_URL=wss://.livekit.cloud # Livekit URL
LIVEKIT_API_KEY=... # Livekit API key
LIVEKIT_API_SECRET=... # Livekit API secret

DEEPGRAM_API_KEY=... # Deepgram API key
CARTESIA_API_KEY=... # Cartesia API key

Connecting Letta to Voice

  1. Run python main.py dev
  2. Go to the Livekit Agents Playground: https://agents-playground.livekit.io/
  3. Chat with your agent

Running with a self-hosted Letta Server

Running Letta

To run Letta, you can either install and run [Letta Desktop](https://docs.letta.com/install) or run a Letta service with Docker:

docker run \
  -v ~/.letta/.persist/pgdata:/var/lib/postgresql/data \
  -p 8283:8283 \
  -e OPENAI_API_KEY=${OPENAI_API_KEY} \
  letta/letta:latest

See Letta's full quickstart and installation instructions [here](https://docs.letta.com/quickstart).

Running ngrok

If you are self-hosting the Letta server locally (at `localhost`), you will need to use `ngrok` to expose your Letta server to the internet:

  1. Create an account on ngrok
  2. Create an auth token and add it into your CLI
ngrok config add-authtoken  
  1. Point your ngrok server to your Letta server:
ngrok http http://l