Skip to content

About

VISION — Real-Time Voice AI Assistant with LiveKit, Gemini 3.1 Flash Live, and Autonomous Stealth Playwright Automation

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

VISION — Real-Time Voice AI Assistant

  ██    ██ ██ ███████ ██  ██████  ███    ██ 
  ██    ██ ██ ██      ██ ██    ██ ████   ██ 
  ██    ██ ██ ███████ ██ ██    ██ ██ ██  ██ 
   ██  ██  ██      ██ ██ ██    ██ ██  ██ ██ 
    ████   ██ ███████ ██  ██████  ██   ████ 

An Apple-restrained, cinematic real-time AI assistant built for voice-first interaction and autonomous browser intelligence.

LiveKit Agents Google Gemini Next.js Playwright Python Tests


Overview

VISION is a purposeful, real-time AI companion designed to live and work alongside you. Powered by the LiveKit Agents real-time pipeline and Google's Gemini 3.1 Flash Live model, VISION features ultra-low latency bidirectional voice streaming with adaptive interruptions, coupled with autonomous browser tools to research, navigate, click, scroll, and complete web tasks hands-free.


Core Features & What We Built

1. Apple-Restrained Cinematic Dark UI

  • Aesthetic Direction: Crafted with deep obsidian blacks (#07080A), dark translucent glass layers, and a single restrained azure accent (#38BDF8). No garish gamer neon or visual noise.
  • Animated Voice Core (VisionCore): A luminous multi-ring central iris that dynamically responds to assistant states:
    • Ready / Idle: Gentle, organic breathing pulse
    • Listening: Concentric acoustic ripple rings reacting to user speech volume
    • Thinking: Intelligent orbital aura rotation
    • Speaking: Audio amplitude modulation reflecting speech cadence
    • Action: Cyan execution chime ripple when browser tasks trigger
  • Harmonic Acoustic Waveform (VisionWaveform): Audio spectrum that reflects conversational energy and transitions fluidly into standby curves.
  • Hardware-Accelerated Masking: Utilizes [clip-path:circle(50%)] to prevent Chromium backdrop-filter clipping artifacts on rounded glass surfaces.

2. Autonomous Stealth Browser Automation

  • 11 Function Tools:
    • open_url / search_the_web / read_page / inspect_page
    • go_back / take_screenshot
    • click / type_text / scroll / press_key
    • confirm_browser_action (safety confirmation gate for consequential actions)
  • Anti-CAPTCHA Presentation Shield:
    • Configured with stealth browser arguments (--disable-blink-features=AutomationControlled, real Chrome User-Agent, custom viewport, WebGL/navigator spoofing).
    • Direct URL resolution for popular platforms (YouTube, Google, Amazon) to bypass robotic challenge barriers during live presentations.

3. Action Awareness & Audio Chimes ("Ting" Sounds)

  • Smart Verbosity Control: For repetitive micro-actions like scrolling and simple clicking, VISION operates silently instead of reciting repetitive verbal confirmations.
  • Synthesized Audio Chimes: Web Audio API generates lightweight acoustic chimes ("Ting" sounds) to give instantaneous auditory confirmation for actions without verbal disruption.

4. Unified Single-Console Process Manager (run.bat)

  • Zero Extra Terminal Windows: Launches both the Python LiveKit agent worker and Next.js 15 dev server silently as background processes.
  • Interactive Dashboard:
    • [O] Open / Re-open Web HUD in browser (http://localhost:3000)
    • [B] Tail last 20 lines of backend logs
    • [F] Tail last 20 lines of frontend logs
    • [Q] Clean termination of all processes and network ports
  • One-Command Cleanup: run.bat stop cleanly terminates background processes and frees occupied ports.

Architecture

                          ┌───────────────────────────┐
                          │   User Voice & Headset    │
                          └─────────────┬─────────────┘
                                        │ WebRTC Audio
                                        ▼
┌─────────────────────────────────────────────────────────────────────────────────┐
│                          LiveKit Cloud Edge Server                              │
└───────────────────────┬─────────────────────────────────┬───────────────────────┘
                        │ Bidirectional Audio Stream      │ LiveKit Agents Protocol
                        ▼                                 ▼
         ┌─────────────────────────────┐   ┌─────────────────────────────┐
         │       VISION Web HUD        │   │    Python Agent Backend     │
         │   (Next.js 15 / React 19)   │   │     (LiveKit Worker)        │
         │                             │   │                             │
         │  • VisionCore Visualizer    │   │  • Gemini 3.1 Flash Live    │
         │  • VisionWaveform           │   │  • AI Coustics Denoising    │
         │  • Status Badges & Controls │   │  • BrowserManager Instance  │
         └─────────────────────────────┘   └──────────────┬──────────────┘
                                                          │ Function Tool Calls
                                                          ▼
                                           ┌─────────────────────────────┐
                                           │   Playwright Browser Engine │
                                           │   • Chromium Automation     │
                                           │   • Stealth Anti-CAPTCHA    │
                                           │   • 11 Navigation Tools     │
                                           └─────────────────────────────┘

Project Structure

VISION AST/
├── jarvis_new/                     # Main assistant application
│   ├── src/
│   │   ├── agent.py                # LiveKit AgentServer & Assistant lifecycle
│   │   ├── browser.py              # Playwright Chromium manager & stealth flags
│   │   ├── tools.py                # 11 browser automation function tools
│   │   ├── prompts.py              # System personality, instructions & verbosity rules
│   │   └── __init__.py
│   ├── frontend/                   # Modern Web HUD
│   │   ├── app/                    # Next.js App Router (Layout & Pages)
│   │   ├── components/app/         # VisionCore, VisionWaveform, ViewController
│   │   ├── components/agents-ui/   # LiveKit Agents UI integration
│   │   ├── hooks/                  # Vision action hooks, LiveKit audio hooks
│   │   ├── lib/                    # Web Audio synth ("Ting" chimes), utilities
│   │   └── package.json            # Frontend dependencies
│   ├── tests/                      # Pytest evaluation suite
│   │   ├── test_browser.py         # Browser tool tests
│   │   ├── test_prompts.py         # Prompt instruction verification
│   │   └── test_web_search.py      # Search routing & fallback tests
│   ├── pyproject.toml              # Python dependencies (uv)
│   ├── uv.lock                     # Locked Python dependencies
│   └── run.bat                     # Local launch script
│
├── agent-starter-flutter/          # Optional mobile client (Flutter / Dart)
│   ├── lib/                        # Flutter source code
│   └── pubspec.yaml                # Flutter dependencies
│
├── scripts/
│   └── run_vision.ps1              # Unified single-console PowerShell launcher
├── .env.example                    # Environment variable configuration template
├── .gitignore                      # Comprehensive exclusion of secrets & caches
├── run.bat                         # Top-level quick launcher
└── README.md                       # Documentation

Quick Start

Prerequisites

  • Python >= 3.10
  • uv package manager
  • Node.js >= 20 & npm (or pnpm)
  • Google Gemini API Key & LiveKit Cloud project credentials

1. Clone the Repository

git clone https://github.com/arjavnotfound/VISION-AST.git
cd "VISION-AST"

2. Configure Environment

Create .env.local inside jarvis_new/ and jarvis_new/frontend/ (or copy from .env.example):

# In jarvis_new/.env.local
LIVEKIT_URL=wss://<your-project>.livekit.cloud
LIVEKIT_API_KEY=<your-key>
LIVEKIT_API_SECRET=<your-secret>
GOOGLE_API_KEY=<your-gemini-key>
# In jarvis_new/frontend/.env.local
LIVEKIT_URL=wss://<your-project>.livekit.cloud
LIVEKIT_API_KEY=<your-key>
LIVEKIT_API_SECRET=<your-secret>

3. Run VISION

Simply execute the launcher:

run.bat

This single command:

  1. Cleans any previous stale instances.
  2. Spawns the LiveKit agent worker in the background.
  3. Starts the Next.js dev server on port 3000.
  4. Automatically opens http://localhost:3000 in your default browser.
  5. Displays an interactive manager in your console.

Other Launcher Commands

run.bat backend       # Run only the Python agent worker in the foreground
run.bat frontend      # Run only the Next.js Web HUD in the foreground
run.bat console       # Terminal-based audio conversation mode
run.bat stop          # Stop all VISION services and free ports

Testing

The backend suite tests browser management, URL parsing, prompt guidelines, and search fallbacks:

cd jarvis_new
uv run pytest tests/test_browser.py tests/test_prompts.py tests/test_web_search.py

Result:

============================= 17 passed in 3.08s ==============================

Tech Stack

Component Technology
Voice Framework LiveKit Agents 1.6+
Realtime Model Google Gemini 3.1 Flash Live (Voice: Enceladus)
Noise Suppression AI Coustics Real-Time Denoiser
Browser Engine Playwright Chromium Stealth
Web Frontend Next.js 15, React 19, Tailwind CSS v4, Motion (Framer Motion)
Mobile Client Flutter 3.5, Dart
Package Managers uv (Python), npm / pnpm (Node.js)

Security & Secrets Policy

This repository strictly enforces .gitignore rules:

  • No .env, .env.local, or secret credentials are ever committed.
  • No local .browser_profile caches or user session cookies are included.
  • Refer to .env.example for variable definitions.

Built with precision for seamless real-time human-AI collaboration.

About

VISION — Real-Time Voice AI Assistant with LiveKit, Gemini 3.1 Flash Live, and Autonomous Stealth Playwright Automation

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages