Back to Overview
06 / 06
CASE STUDY · 06Voice AI & Web Audio2025–26

Voice AI Copilot

Voice AI copilot with speech recognition, LLM tool calling & Web Audio DSP.

Screen 1 of 1Auto-scrolling every 3s
https://autonomous-neural-copilot.vercel.app
Voice AI Copilot — 01 Voice Command HUD
01 Voice Command HUD

Central voice interface with real-time audio visualizer canvas, hotword status, and command bar

Application Screen Flow (Click any tag to jump to that screen)
Executive Architecture

System Overview & Engineering Longevity

A browser-based voice assistant engineered for hands-free task management and low-latency interaction. Built with modern JavaScript ES Modules, Vite, and cloud-accelerated AI inference, the application couples browser hotword listening with speech-to-text transcription. Ambient audio is processed via Web Audio API AnalyserNode RMS energy calculation to detect conversational pauses naturally. Spoken commands are interpreted by an LLM into structured JSON tool execution payloads for Firestore task management, reminder scheduling, and daily agenda briefings, visualised in an interactive HUD with a radial audio frequency visualizer.

Core Capabilities

Key Engineering Highlights

Cloud speech-to-text with Whisper model transcription
LLM tool calling resolving natural voice commands into structured JSON actions
Browser hotword detection ("Jon", "Hey Jon") for hands-free activation
Web Audio API RMS energy tracking with conversational silence detection
Task management & natural language reminder scheduling in Firestore
Daily briefing compiling pending tasks, agenda items, and schedule
Interactive HUD with real-time radial audio canvas visualizer
Procedural Web Audio acoustic cues paired with speech synthesis
Technologies & Protocols
JavaScript (ES Modules)Vite 5Groq LLaMA 3.3 70BGroq Whisper Large v3Web Audio APIWeb Speech APIFirebase AuthCloud FirestoreHTML5 CanvasVercel Edge
Production Standard

Architected with clean domain separation, strict TypeScript contracts, and automated telemetry logging.

Whisper

Cloud STT

Cloud speech-to-text inference

LLM Tools

Intent Parsing

Structured tool schema extraction

Web Audio

Silence Detection

Dynamic RMS energy monitoring

Hands-Free

Hotword Listening

In-browser wake-word detection

Canvas

Audio Visualizer

Real-time frequency spectrum rendering

Firestore

Cloud Database

User-scoped task and reminder sync

Execution Pipeline

End-to-End System Data Flow

How user inputs, computer vision pipelines, and transaction protocols flow across the stack.

STEP 01

Hotword Listening

In-browser Web Speech listener scans ambient audio for wake words ("Jon", "Hey Jon") without continuous server calls.

STEP 02

Audio DSP & Silence Detection

Web Audio API AnalyserNode tracks live RMS amplitude; records microphone input until conversational silence is reached.

STEP 03

Cloud Speech-to-Text

Captured audio is sent to cloud Whisper inference, returning structured speech transcription.

STEP 04

LLM Intent Parsing

Transcript is evaluated by the LLM against defined tool schemas, resolving intent into validated JSON actions.

STEP 05

Firestore Mutation & Voice Feedback

Action executes against Firestore (task/reminder), an acoustic cue plays, and synthesized speech confirms the result.

STEP 06

Reactive State Update

Canvas visualizer resets to idle state, task drawer updates via Firestore snapshot, and HUD updates status.

Module Architecture

System Capabilities & 3+ Functional Modules

3+ Integrated Modules
Speech Recognition & Audio

Voice Pipeline & Hotword Listener

Acoustic intake engine bridging in-browser wake-word detection into cloud transcription. Monitors for wake utterances and captures microphone audio for transcription.

Browser-native Web Speech background hotword listener
Stream handoff to Whisper cloud speech-to-text
Cloud Database

Task Ledger & Reminders Engine

Firebase Firestore persistence layer providing reactive state synchronization for user tasks, agenda items, and scheduled notifications.

User-scoped Firestore collections ensuring data isolation per authenticated user ID
Live subscription listeners updating the slide-out drawers without page reloads
Frontend Interface

Interactive HUD & Audio Canvas

Modern interface featuring multi-layered backdrop blur filters, glowing light fields, and canvas-rendered audio frequency visualizers.

Dark-themed base with ambient blue and violet glow accents
Concentric rotating rings around the central voice core
Technical Analysis

Key Engineering Bottlenecks & Solutions

Challenge 01

Conversational Truncation in Voice Capture

Fixed-length audio recording cuts off slower speakers. Solved by implementing continuous Web Audio API RMS energy tracking that extends recording while vocal frequencies remain active, finalizing only after sustained silence.

Implemented & Verified
Challenge 02

End-to-End Latency from Voice to Spoken Output

Multi-hop pipelines (Wake -> STT -> LLM -> DB -> TTS) can introduce noticeable latency. Minimized roundtrip delay by leveraging fast cloud inference and executing database mutations concurrently while synthesis prepares audio.

Implemented & Verified
Challenge 03

Structured Tool Calling from Conversational Voice

Voice commands frequently contain ambiguous phrasing or informal time references. Used structured tool schemas and prompt grounding to enforce clean JSON payload formatting with schema validation and fallback handling.

Implemented & Verified
Challenge 04

Real-Time Canvas Audio Visualization Performance

Rendering frequency bins in real time alongside CSS blur effects can impact browser performance. Optimized the animation loop using requestAnimationFrame with pre-allocated TypedArray buffers (Uint8Array) on an isolated canvas layer.

Implemented & Verified
Next Case Study

GardenMate Ecosystem

Custom Vision Transformer AI + Viro AR mobile platform with 12+ modules.

View Next System