README.md

Voice Assistant #

A distributed voice assistant that runs on multiple Linux machines.

Quick Start #

Clone and Install #

# Clone the repository
git clone <repo> ~/voice-assistant
cd ~/voice-assistant

# Build the Go binary
make

# Install binary and systemd service
sudo apt install alsa-utils  # Required for audio
make install
make enable

Makefile Commands #

Command Description
make Build binary to out/voice-client
make install Install to ~/.local/bin/ and systemd
make enable Start the service
make disable Stop the service
make status Check service status
make logs View logs
make uninstall Remove everything

This Machine (Server) #

Running at:

Remote Client Setup #

On a remote Linux machine:

# Clone
git clone <repo>

# Install system dependencies
sudo apt install alsa-utils

# Build
cd voice-assistant
make

# Install
make install
make enable

The client will automatically connect to ws://10.2.0.184:8888.

How It Works #

  1. Client listens for voice using simple volume detection
  2. When voice is detected, starts recording
  3. After silence, sends audio to server via WebSocket
  4. Server transcribes with Whisper
  5. Server streams TTS response back
  6. Client plays audio in real-time

Troubleshooting #

No audio device #

# Check available devices
arecord -l
paplay --version  # Check PulseAudio

Check server #

curl http://10.2.0.184:8880/health

View logs #

journalctl --user -u voice-client -f