Skip to main content

Voice-Based Hands-Free Browsing

The Voice-Based Hands-Free Browsing System is an in-browser assistive AI assistant embedded directly into HiTech Insurance. Designed with federal safety regulations and on-the-road driver convenience in mind, the system allows commercial drivers, fleet managers, and field contractors to navigate the platform, query policy coverages, open interactive quoting workflows, and initiate direct agent phone calls entirely through natural spoken voice commands.


1. Regulatory Context & Safety Objectives​

Federal Motor Carrier Safety Administration (FMCSA) and Department of Transportation (DOT) commercial driving regulations (49 CFR § 392.80 and § 392.82) strictly prohibit commercial motor vehicle (CMV) operators from manually typing on or holding mobile devices while driving.

The Voice-Based Browsing assistant solves this compliance challenge by providing:

  1. Zero-Touch Page Navigation: Complete hands-free browsing across all 20 insurance lines, blog posts, and company portals.
  2. Instant Emergency Dispatch: Spoken commands like "Call agent" or "Emergency roadside dispatch" automatically trigger native phone dialing.
  3. Modal & Form Automation: Drivers can open the Get a Quote modal or Schedule a Call drawer and auto-populate inquiries hands-free.

2. System Architecture & Audio Pipeline​

The voice system consists of four interconnected layers executing directly in the client browser:

2.1 Audio Waveform Visualizer​

When the microphone is active, an interactive canvas visualizer provides real-time visual feedback:

  • Web Audio Context: Initialized via window.AudioContext || window.webkitAudioContext.
  • Fast Fourier Transform (AnalyserNode): Configured with fftSize = 256 to capture 128 frequency bins in real time.
  • Dynamic Render Loop: Driven by requestAnimationFrame at 60 frames per second, rendering a responsive frequency wave with brand gradient colors (#ff763c to #ff4500).

2.2 Echo Suppression & Feedback Guard​

A critical challenge in browser-based voice assistants is the "self-triggering loop," where synthesized voice prompts played through speakers are picked up by the microphone and re-ingested as user commands.

The system prevents this through a hardware-level and software-level guard:

  • State Lock: While audio synthesis is active (isSpeaking = true), speech recognition (recognition.stop()) is suspended.
  • Cooldown Buffer: A 350ms quiet cooldown period is enforced after speech finishes before re-enabling microphone listening.
  • Echo Cancellation Constraints: WebRTC microphone stream requests enforce echoCancellation: true and noiseSuppression: true.

3. Natural Language Intent Catalog​

The intent recognition engine parses natural conversational phrases into structured actions:

CategorySpoken Trigger ExamplesSystem ActionTarget Entity
Navigation"Go to truck insurance", "Show motor cargo", "Open bobtail"router.push('/[locale]/insurance/[slug]')Resolves slug from 20 catalog lines
Portal Nav"Open social page", "Take me home", "Read the blog"router.push(destination)/social, /, /blog
Quoting"Get a quote", "I want an estimate", "Start quote"openQuoteModal()Launches multi-step draft quote wizard
Consultation"Schedule a call", "Call me back", "Talk to someone"openScheduleCallDrawer()Opens callback time-slot picker
Emergency Dispatch"Call agent", "Emergency dispatch", "Phone HiTech"window.location.href = 'tel:+18889154847'Direct cellular carrier dispatch
Window Scrolling"Scroll down", "Scroll up", "Scroll to top"window.scrollBy({ top: +/-500, behavior: 'smooth' })Smooth viewport scrolling
Modal Dismissal"Close window", "Dismiss modal", "Go back"closeAllModals()Dismisses active drawers & popups

4. Multi-Language & Voice Dialects​

Commercial trucking is one of the most culturally diverse industries in North America, with significant populations of bilingual Hispanic, Punjabi, and South Asian haulers. The voice system natively supports multiple speech recognition and synthesis locales:

LanguageRecognition LocaleSynthesis Engine VoicePrimary Demographic
English (US)en-USen-US-JennyNeuralGeneral North American transport operators
Spanish (LatAm)es-MX / es-USes-MX-DaliaNeuralHispanic haulers & cross-border US/Mexico logistics
Hindi (Indian)hi-INhi-IN-SwaraNeuralIndian-American trucking & freight operations
Punjabi (Indian)pa-INpa-IN-GurpreetNeuralMajor Punjabi-American interstate transport networks

When cloud neural speech is unavailable due to offline rural connectivity, the assistant automatically degrades gracefully to client-side window.speechSynthesis voices matching the current locale.