Direct Gemini Live Integrator

Next-Gen Voice-Controlled
Media System

A high-performance C++ firmware, lightweight Go MCP service & command proxy, and reactive web control studio combined into a single real-time voice-assistant media player ecosystem.

Explore Projects View Architecture

Ecosystem Projects

Nexus is split into decoupled components that communicate seamlessly using WebSockets, JSON-RPC, and Model Context Protocol (MCP).

ESP32-S3 Hardware Client

Ultra-low latency, real-time edge processing

Runs on the Waveshare Audio Development Board. It processes audio input and output locally, maintains a secure WebSocket session directly to Google's Gemini Live API, coordinates hardware states, and responds to local physical buttons.

Core Technologies

C++17 ESP-IDF v5.x FreeRTOS WakeNet / ESP-SR I2S DMA EmbeddedSysDb

Key Architectural Strengths

  • Direct Gemini Live & Real-time VAD
  • 15 Hardened Core Device Skills
  • 4-Source Alarm Engine & Morning Briefing
  • Unified Reminders & Action Scheduler
  • EmbeddedSysDb (State Reactor)
  • Linear Resampler (3:4 & 3:2)
EmbeddedSysDb.cpp
// Lock-free state modification
void updateVolume(int new_vol) {
    EmbeddedSysDb::getInstance().mutate([new_vol](SystemState& s) {
        s.audio.speaker_volume = new_vol;
    });
    // Tasks registered to COMP::AUDIO receive 
    // synchronous FreeRTOS task notifications
}

Go MCP Server & Media Relay

Robust media coordination & Model Context Protocol skills

Acts as the central cloud capability provider and media agent. It hosts a high-performance Model Context Protocol (MCP) server over SSE providing external tools (news headlines, web search, weather forecasts) directly to the assistant without needing firmware updates. Also handles stream resolution and audio playback queues.

Core Technologies

Go 1.24+ Model Context Protocol (MCP) Server-Sent Events (SSE) mpv Daemon yt-dlp SQLite (Pure Go)

Key Architectural Strengths

  • Remote Skills over MCP (News, Search, Weather)
  • No-Flash Firmware Extensibility
  • Real-time Stream-Record Caching
  • Intelligent Audio Ducking
  • CGO-free cross-compilation
mcp_server.go
// Register remote MCP tools over SSE
s.RegisterTool("news_headlines", handleNews)
s.RegisterTool("web_search", handleSearch)
s.RegisterTool("get_weather", handleWeather)
// ESP32 queries tools dynamically without OTA

Nexus Web Studio

High-performance reactive control dashboard

A lightweight, single-bundle control center served directly from ESP32 flash memory. Provides live telemetry over WebSockets, dynamic Gemini Live model & VAD parameter selection, a 4-source alarm manager with YouTube and Opus upload, reminder & action scheduling, and dual-slot OTA firmware management.

Core Technologies

React 19 Vite HTML5 WebSockets NDB Binary Database Dual-Slot WebBundle

Key Architectural Strengths

  • Real-time Device State Synchronization
  • Live Gemini Model & VAD Controls
  • 4-Source Alarm & Tone Manager
  • Reminders & Scheduled Actions Engine
AlarmsView.jsx
// 4-source tone picker & morning briefing
const saved = await saveAlarm({
    tone: "builtin:chime",
    briefing: true,
    snooze_min: 9,
    kind: "alarm"
});

Ecosystem Dataflow

See how the entire system reacts when you speak a voice command, streaming audio, instructions, and remote skills seamlessly in milliseconds.

ESP32 Edge

1. Wake & Capture

WakeNet wakes the board. AudioService captures mic stream, runs local VAD, and streams PCM to the WebSocket.

Google Cloud

2. Gemini Live

Decodes voice stream with chosen model, applies search grounding, and returns structured function call JSON.

Dual Dispatch

3. Local Skills & MCP

Core hardware skills (15 tools) execute locally on ESP32; remote tools (news, search, weather) query Go MCP over SSE.

Live Execution

4. Action & Speech

Audio plays, actions execute via the scheduler, and responses stream back to the speaker in real time.

Nexus Orbit (Upcoming)

5. Satellite Handoff

Target routing hands off playback to PC/desktop satellites with decentralized stream resolution and auto-failover.

Key Ecosystem Solutions

Advanced engineering implementations resolving audio streaming, synchronization, and intelligent edge-cloud capabilities.

Gemini Live & Dynamic Model Engine

Direct bidirectional voice streaming with runtime Gemini Live model selection, Google Search grounding where supported, adaptive voice-activity detection (VAD), and conversational barge-in sensitivity.

ESP32-S3 Firmware Gemini Live

Remote Skills over MCP

Powered by a dedicated Go Model Context Protocol (MCP) server over Server-Sent Events (SSE). Seamlessly extends assistant intelligence with real-time news headlines, web search, and weather forecasts without requiring firmware updates.

Go MCP Server SSE Tool Calling

Unified Scheduler: Reminders & Actions

An autonomous cron-like task scheduler that handles both natural language spoken reminders and scheduled time-based device actions ("play lofi at 7", automated routine triggers from notes).

ESP32-S3 Firmware EmbeddedSysDb

4-Source Alarms & Morning Briefing

Wake-up tones selectable from synthesized hardware patterns, custom uploaded Opus audio files, YouTube downloads, or the offline music library with classic fallback. Delivers a spoken morning briefing upon stopping.

Audio Decoder Opus AlarmService

Voice Notes & Safe Deletion

Spoken note-taking stored persistently on SD card storage, protected with spoken verbal confirmations before any destructive deletion action.

ESP-SR Notes Service Voice Safety

15 Hardened Core Device Skills

A trimmed and deterministic embedded toolset executing direct hardware control—alarms, timers, volume, display brightness, WiFi diagnostics, and audio recording—with low-latency edge execution.

C++17 FreeRTOS Tool Dispatch

Dynamic Resampling & Leaky Playback

The ESP32 firmware dynamically handles linear upsampling (24kHz assistant to 32kHz native DAC) and downsampling (32kHz mic to 16kHz VAD/WakeNet), using a leaky bucket algorithm to prevent buffer starvation.

ESP32-S3 Firmware I2S DMA

Real-time Stream Caching

The media subsystem logs played network stream packets directly to disk (using stream-record). This caches music transparently as you listen, ensuring no bandwidth is wasted on repeat tracks.

Media Subsystem Stream Cache

Dual-Slot Web Studio & OTA

Complete browser management studio served directly by the ESP32 featuring real-time WebSocket telemetry, tone manager, scheduler controls, and failsafe dual-slot flash OTA updates with instant rollback.

React / Vite WebSockets Dual-Slot OTA
Upcoming · Planned

Nexus Orbit: Distributed Satellite Playback

Extends the ESP32-S3 into a distributed multi-device audio constellation. While Nexus Core remains the brain, queue master, and voice interface, audio rendering seamlessly hands off to PC and workstation satellites with decentralized stream resolution, MPRIS media keys, and instant local failover.

Target Routing nexus-satellite Decentralized Audio Auto-Failover