Local voice & text AI assistant powered by Ollama and Vosk
- ๐ฃ๏ธ Voice & text interaction modes
- ๐ค Local AI processing (no cloud required)
- ๐ป Code generation (Python, JS, HTML)
- ๐ง System tools & file operations
- ๐ Visual feedback via ST7789 display
- ๐ค Wake word detection with fuzzy matching
- ๐ Multi-device audio support
- ๐ง Ollama model selection
- ๐ Conversation logging
- โก Real-time command processing
- ๐ฅ๏ธ Raspberry Pi/Linux system
- ๐ Python 3.8+
- ๐ค Microphone (voice mode)
- ๐ Speaker (voice mode)
- ๐บ ST7789 display (optional)
git clone https://github.com/Sean504/Atlas-bot
cd Atlas-bot
chmod +x install.sh
./install.sh
source atlas_env/bin/activate
๐ Hardware Setup
bashCopy# Audio Devices
arecord -l # List inputs
aplay -l # List outputs
# Display (ST7789)
VCC โ 3.3V
GND โ Ground
DIN โ MOSI
CLK โ SCLK
CS โ CE0
DC โ GPIO9
RST โ GPIO25
BL โ GPIO13
๐ฑ Usage
๐ Getting Started
Launch Atlas: python atlas.py
Select mode:
1: Voice Input ๐ค
2: Terminal Input โจ๏ธ
Choose AI model:
CopyAvailable models:
0: smollm2:1.7b
Configure audio devices (voice mode)
๐ฌ Commands
๐ฃ๏ธ Voice Mode
Wake word: "Hey Atlas"
Wait for green display
Speak command
3-second pause triggers processing
โจ๏ธ Terminal Mode
bashCopyAtlas Terminal Mode
Type 'exit' to quit
You: generate python calculator
๐ Available Commands
TypeCommandExample๐ป Codegenerate/create"generate python calculator"๐ Fileswrite/read"write hello to file.txt"๐ง Systemrun/execute"run ls -la"๐งฎ Mathcalculate"calculate 2 + 2"โฐ Timetime/date"what's the time?"
๐ง Troubleshooting
๐ค Audio Issues
bashCopy# Check devices
arecord -l
aplay -l
# Test recording
arecord -d 5 test.wav
aplay test.wav
# Permissions
groups | grep audio
sudo usermod -a -G audio $USER
๐ค Model Issues
bashCopy# Check Ollama
ollama list
ls ~/.ollama/models
# Reinstall models
ollama pull smollm2:360m
๐บ Display Issues
bashCopy# Enable SPI
sudo raspi-config
# Check module
lsmod | grep spi
๐ Resources
Made with โค๏ธ using Ollama & Vosk