Turn a Raspberry Pi into a fully offline voice assistant. No cloud, no accounts, no data leaving your home — speech recognition, the LLM, and the voice all run on the device. Built on whispa (whisper.cpp + Ollama + Piper) with a ready-to-run install script, a systemd service, and a hardware guide.
🌍 English · Português · 📚 Documentation
Commercial smart speakers are microphones pointed at someone else's cloud. whispa-pi is the opposite: a private, hackable appliance you fully own. Ask it things, run local tools, and nothing is ever uploaded. A great weekend build and a genuinely useful device.
| Part | Notes |
|---|---|
| Raspberry Pi 5 (8 GB) — or Pi 4 (4 GB+) | 8 GB recommended for a snappier LLM |
| microSD (32 GB+) or NVMe | models + OS |
| USB microphone or a ReSpeaker HAT | any 16 kHz-capable mic works |
| Speaker | USB, 3.5 mm, or I²S |
| Power supply | official PD supply recommended |
| (optional) 3D-printed case | see docs/en/hardware.md |
# One-shot installer: audio tools, Node, whisper.cpp, Ollama, Piper + models curl -fsSL https://raw.githubusercontent.com/marcelogdomingues/whispa-pi/main/scripts/install-pi.sh | bash # Run it whispa-pi # uses defaults / env vars whispa-pi my-config.json # or a config file
Speak, pause, and it replies out loud. Configuration is via a JSON file or WHISPA_*
environment variables — see docs/en/setup.md.
sudo cp systemd/whispa-pi.service /etc/systemd/system/
sudo systemctl enable --now whispa-pi🎙️ mic → sox/arecord → whisper.cpp (STT) → Ollama (LLM) → Piper (TTS) → speaker 🔊
The loop (record → think → speak) lives in this repo; the STT/LLM/TTS orchestration comes from whispa. Both are MIT and fully offline.
import { Appliance, SoxVadRecorder, AplayPlayer } from 'whispa-pi'; import { VoicePipeline, WhisperCppStt, OllamaLlm, PiperTts } from 'whispa'; const appliance = new Appliance({ recorder: new SoxVadRecorder(), pipeline: new VoicePipeline({ stt, llm, tts }), player: new AplayPlayer(), }); await appliance.loop();
MIT © Marcelo Domingues