Something went wrong. Try again.
Something went wrong. Try again.
voice-assistant 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:
- WebSocket: ws://0.0.0.0:8888
- TTS: http://localhost:8880
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 #
- Client listens for voice using simple volume detection
- When voice is detected, starts recording
- After silence, sends audio to server via WebSocket
- Server transcribes with Whisper
- Server streams TTS response back
- 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