voice-agent

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Command voice-agent demonstrates a full voice AI agent using LiveKit.

The agent joins a LiveKit room and responds to human participants using configurable STT, LLM, and TTS providers via omnivoice.

Usage:

export LIVEKIT_URL="wss://your-project.livekit.cloud"
export LIVEKIT_API_KEY="your-api-key"
export LIVEKIT_API_SECRET="your-api-secret"

# STT provider (deepgram, openai, elevenlabs)
export STT_PROVIDER="deepgram"
export DEEPGRAM_API_KEY="your-key"  # or OPENAI_API_KEY, ELEVENLABS_API_KEY

# TTS provider (openai, elevenlabs, deepgram)
export TTS_PROVIDER="openai"
export OPENAI_API_KEY="your-key"    # or ELEVENLABS_API_KEY, DEEPGRAM_API_KEY

# LLM provider
export ANTHROPIC_API_KEY="your-key"

# Optional: Enable avatar (static image in video tile)
export AGENT_AVATAR="true"            # Use default OmniAgent icon
export AGENT_AVATAR="/path/to/avatar.h264"  # Use custom pre-encoded avatar

go run -tags opus ./cmd/voice-agent

Then open the printed URL in your browser to join and talk to the agent.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL