$ stat ./projects/pocket-chat.md
Title: Pocket Chat - AI Custom Voice Chatbot
Date: 1/20/2026
Description: A minimal, high-performance voice AI assistant built on Raspberry Pi Zero 2W + PiSugar Whisplay HAT. Button press → listen (STT) → custom prompt pipeline → model response → speak (TTS), with real-time display/RGB feedback.
(( Open on GitHub ))A minimal, high-performance voice AI assistant built on Raspberry Pi Zero 2W + PiSugar Whisplay HAT.
Button press → listen (STT) → custom prompt pipeline → model response → speak (TTS), with real-time display/RGB feedback.
Goal: Fast, responsive, offline-capable pocket device — no unnecessary multi-provider bloat.
pocket-whisplay-ai/
├── venv/ # Python virtual environment (create with python3 -m venv venv)
├── src/
│ ├── main.py # Entry point: state machine loop
│ ├── hardware.py # WhisplayBoard class (LCD, RGB, button) – copy from original repo
│ ├── audio.py # Mic recording & speaker playback helpers (pyaudio + ALSA)
│ ├── stt.py # Vosk streaming STT
│ ├── pipeline.py # Custom prompt → LLM API call → response handling
│ ├── tts.py # Piper TTS generation & playback
│ └── config.py # API keys, model paths, card name, etc.
├── models/ # Vosk model (e.g., vosk-model-small-en-us-0.15) + Piper voice models
├── requirements.txt
├── run.sh # Startup script (uses venv Python)
└── README.md
Update system & install dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install -y python3-venv python3-pip libportaudio2 portaudio19-dev git
sudo apt install -y alsa-utils # For aplay/arecord testing
Install Whisplay HAT drivers (from PiSugar repo)
./install.sh or similar; reboots required)aplay -l should show wm8960-soundcardarecord -D plughw:wm8960soundcard,0 -f cd test.wav then aplay test.wavCreate & activate virtual environment
python3 -m venv venv
source venv/bin/activate
Install Python packages
pip install vosk pyaudio sounddevice requests # Core
# For Piper TTS: pip install piper-tts (or use binary from rhasspy/piper GitHub)
Download models
models/vosk-model-small-en-us-0.15models/piper/Run the bot
./run.sh
(Or directly: venv/bin/python src/main.py)
#!/usr/bin/env bash
echo "Starting Pocket Whisplay AI..."
source venv/bin/activate
python src/main.py
deactivate
Finding related projects...
$ cd .. && ./projects.sh
← Back to all projects