Discovery Project – Ghola

Dune-Inspired Local AI Assistant

← Back to Home

Ghola running in terminal on macOS

Overview

Ghola is a privacy-first, local voice assistant inspired by the Dune universe. Running entirely on macOS, it demonstrates a complete AI pipeline without any cloud dependencies—speech recognition, language understanding, and voice synthesis all happen on-device.

The assistant features a "Ghola" persona with Mentat-like analytical capabilities and philosophical depth from Frank Herbert's series. It responds to voice commands, controls smart home devices, and engages in conversation with a unique Dune-inspired personality.

Tech Stack

How It Works

The system follows a continuous voice loop:

  1. Wake Word Detection: Always-listening for "Hey Mycroft" or "Hey Jarvis"
  2. Audio Capture: Records 5 seconds of audio from microphone
  3. Transcription: Faster Whisper converts speech to text locally
  4. Intent Parsing: Simple keyword matching for lamp commands ("turn on/off the light")
  5. Action: Either controls mock lamp via HTTP or queries Ollama LLM
  6. Response: Piper TTS speaks the response with natural voice

Technical Highlights

Privacy-First Architecture

Every component runs locally—no cloud API calls, no telemetry, no data leaving the machine. This was a core design principle, proving that powerful AI assistants don't need to harvest user data.

Performance Optimizations

Mock Lamp System

Since Matter lamp pairing proved challenging, I built a mock lamp for testing—a web-based visual indicator (white = on, black = off) with a REST API. This allowed me to validate the full voice control loop while debugging hardware integration separately.

Example Interaction

User: "Hey Mycroft"
Ghola: "Yes?"
User: "Turn on the lamp"
Ghola: "It is done. The light shines."

What I Learned

Reflection

This project clarified my interests within ECE: while I find hardware fascinating, I consistently enjoyed the software integration work more than wrestling with smart home firmware quirks. Ghola pushed me toward a stronger focus on intelligent tooling, system architecture, and software-heavy ECE rather than purely hardware-centric paths.

Development workspace for Ghola

"The mystery of life isn't a problem to solve, but a reality to experience."

— Frank Herbert, Dune