Skip to main content

Getting Started Overview

This guide takes you from zero to a working voice assistant. By the end, you'll have a real-time conversational AI application running locally.


Learning Path

GuideWhat You'll Learn
InstallationInstall packages and dependencies
Backend QuickstartRun the server with cloud providers
Web Client QuickstartConnect a browser and speak to your assistant
Tool CallingGive your assistant custom capabilities
Local-Only StackRun entirely locally without cloud APIs

What You'll Build

By the end of the quickstarts, you'll have:

  1. A working voice server that processes speech, generates responses, and synthesizes audio
  2. A browser client that captures your microphone and plays assistant responses
  3. Custom tools that let your assistant perform actions like checking the weather
  4. Optionally, a fully local stack for privacy-sensitive applications

Prerequisites

Required

RequirementVersionCheck Command
Node.js20+node --version
npm9+npm --version

You'll need API keys for at least one provider per capability:

CapabilityProvider Options
LLMOpenAI, Anthropic, Google Gemini
Speech-to-TextOpenAI Whisper
Text-to-SpeechOpenAI TTS, ElevenLabs

Quickest setup: An OpenAI API key covers all three capabilities.

For Local Path (No Cloud Dependencies)

ComponentSoftware
LLMOllama with llama3.2 or similar
Speech-to-TextFaster-Whisper Server
Text-to-SpeechPiper

Two Paths

Choose your approach:

Cloud Path (Start Here)

Best for: Quick setup, production deployments, highest quality

Pros:

  • Fastest setup (minutes)
  • Best quality models
  • No local GPU required

Cons:

  • Requires API keys
  • Ongoing API costs
  • Data sent to cloud providers

Local Path

Best for: Privacy, offline use, development without API costs

Pros:

  • Complete privacy
  • No API costs
  • Works offline

Cons:

  • Longer setup
  • Requires decent CPU/GPU
  • Smaller model selection

Quick Reference

Environment Variables

# Cloud providers
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
ELEVENLABS_API_KEY=...

# Local providers (defaults shown)
OLLAMA_BASE_URL=http://localhost:11434
FASTER_WHISPER_URL=http://localhost:9000
PIPER_URL=http://localhost:5002

Default Ports

ServiceDefault Port
LLMRTC Backend8787
Ollama11434
Faster-Whisper9000
Piper5002

Running the Examples

After completing the quickstarts, try the included examples:

Source: examples/vite-demo

cd examples/vite-demo
npm install
npm run dev

Features: Audio visualization, transcript display, tool calling UI

Minimal Example (80 Lines)

Source: examples/minimal

cd examples/minimal
npm install
npm run dev

A bare-bones implementation showing the essential code.


Troubleshooting Setup

Node.js Version Issues

# Check version
node --version

# If < 20, use nvm to upgrade
nvm install 20
nvm use 20

API Key Problems

Verify your key works:

# Test OpenAI key
curl https://api.openai.com/v1/models \
-H "Authorization: Bearer $OPENAI_API_KEY"

Port Conflicts

If port 8787 is in use:

# Find what's using the port
lsof -i :8787

# Or use a different port
PORT=9000 npm start

Next Steps

Ready to start? Begin with installation: