page

Browser Extension

Browser Extension

Overview

Chrome/Firefox extension that listens continuously.

Advantages

  • Always running when browser is open
  • Can access microphone across all tabs
  • Persistent background script
  • No need to keep a specific tab open

Implementation

manifest.json

{
  "name": "Hey LARS",
  "permissions": ["microphone", "background"],
  "background": {
    "service_worker": "background.js"
  }
}

Background Script

// Continuous listening in background
chrome.runtime.onStartup.addListener(() => {
  startWakeWordDetection();
});

function startWakeWordDetection() {
  // Get microphone access
  // Stream to wake word detector
  // On detection, open Nexus panel
}

Considerations

  • Chrome Manifest V3 has some limitations
  • Need to handle microphone permissions carefully
  • Good for desktop use cases
ID: 564085f8
Path: LARS Voice Assistant > Mobility Options > Browser Extension
Updated: 2025-12-30T20:32:45