A Chrome extension prototype for voice input and text-to-speech, built with accessibility in mind. Tested locally and never published to the Chrome Web Store.
Problem
Accessibility and productivity for text dictation.
Solution
A lightweight extension that adds voice input and read-aloud to any web page.
My Role
Developer
Tech Stack
Chrome Extension API
Web Speech API
JavaScript
Overview
A Chrome extension prototype that adds voice input and text-to-speech to web pages, built with accessibility in mind. It uses the browser's Web Speech API for both recognition and synthesis, so quality and language coverage depend on the browser's own speech engine.
Status: prototype. It was tested locally and never published to the Chrome Web Store. The public repository currently holds only the README and licence.
Problem & Solution
The Accessibility Challenge
Digital Divide: 15% of the global population lives with some form of disability, yet most websites lack adequate accessibility features
Input Barriers: Traditional keyboard/mouse input can be challenging for users with motor disabilities
Reading Difficulties: Users with dyslexia, visual impairments, or learning disabilities need alternative content consumption methods
Productivity Gaps: Voice input can be 3x faster than typing for many users, but most websites don't support it natively
Our Solution
The Voice-to-Speech Extension provides:
Universal Voice Input: Convert speech to text on any website input field
Intelligent Text-to-Speech: Read any selected text or entire web pages aloud
Browser-Based: Uses the browser's built-in speech APIs
Customizable Experience: Adjustable speech rate, pitch, volume, and language settings
Seamless Integration: Works with existing websites without requiring modifications
Technical Architecture
Core Technologies
Web Speech API Integration
Speech Recognition: Real-time voice-to-text conversion using browser's native capabilities
Continuous Listening: Advanced noise filtering and pause detection
Multi-language Support: the languages available depend on the browser's speech engine
Confidence Scoring: Quality assessment for transcription accuracy
Speech Synthesis API
Natural Voice Output: High-quality text-to-speech using system voices
Voice Selection: Access to all installed system voices
Prosody Control: Fine-tuned control over speech rate, pitch, and volume
SSML Support: Advanced speech markup for enhanced pronunciation
Chrome Extensions API
Content Script Injection: Seamless integration with web pages
Background Processing: Persistent functionality across browser sessions
Context Menus: Right-click integration for quick access
Keyboard Shortcuts: Customizable hotkeys for power users
Background Script: Manages extension lifecycle and cross-tab communication
Content Script: Handles webpage interaction and DOM manipulation
Popup Interface: User-friendly control panel for quick settings
Options Page: Comprehensive settings and customization panel
Privacy
Recognition uses the browser's Web Speech API. In Chrome this may send audio to Google's speech service, so the extension should not be treated as fully local processing.
Key Features & Capabilities
Voice Input System
Instant Activation: Click-to-talk or keyboard shortcut activation
Smart Field Detection: Automatically focuses on text input fields
Continuous Mode: Hands-free dictation with voice commands
Punctuation Commands: Voice-controlled punctuation and formatting
Multi-field Support: Seamless switching between input fields
Text-to-Speech Engine
Selective Reading: Read highlighted text, paragraphs, or entire pages
Smart Parsing: Intelligent content extraction ignoring navigation elements
Reading Controls: Play, pause, stop, and skip functionality
Visual Themes: Multiple UI themes including high contrast options
Behavioral Settings: Configurable auto-pause, speed adjustment, and more
Technical Challenges & Solutions
1. Cross-Site Compatibility
Challenge: Ensuring consistent functionality across diverse website architectures and frameworks
Solution: Developed robust DOM manipulation system with fallback strategies for different input field types
2. Real-time Speech Processing
Challenge: Minimizing latency between speech input and text output while maintaining accuracy
Solution: Implemented optimized speech recognition with predictive text suggestions and confidence-based auto-correction
3. Browser Performance Optimization
Challenge: Maintaining minimal performance impact while providing rich functionality
Solution: Lazy loading of speech engines, efficient event handling, and memory management optimization
4. Multi-language Support
Challenge: Supporting diverse languages with different speech patterns and writing systems
Solution: Dynamic language model loading with automatic language detection and switching
Innovation Highlights
1. Adaptive Speech Recognition
Context-Aware Processing: Adjusts recognition based on webpage content type
Learning Algorithm: Improves accuracy based on user correction patterns