v1.0.2Zero Dependencies< 2KB gzipped

Introduction

JSVoice is a lightweight, zero-dependency JavaScript library that brings voice command and speech synthesis capabilities to web applications.

Built on top of the generic Web Speech API, JSVoice provides a unified, coherent interface for adding voice capabilities to your React, Vue, or vanilla JS applications. It handles the complexity of browser differences, permission management, and state handling so you can focus on building magic.

Voice Recognition

Convert speech to text in real-time with continuous listening support.

Speech Synthesis

Make your app talk back with customizable voices, pitch, and rate.

Pattern Matching

Extract variables from commands like 'Order {quantity} pizzas'.

Why JSVoice?

  • Zero external dependencies - keeps your bundle light
  • Built-in wake word detection ('Hey Computer')
  • Pluggable Architecture (Support for Whisper, etc.)
  • Real-time audio visualization hooks
  • TypeScript ready with full type definitions
  • Works offline (depending on browser engine)

Browser Support

BrowserSupportNotes
Chrome / EdgeFull SupportBest experience (Google Chromium Engine)
SafariPartialRequires user gesture for activation
FirefoxNoneSpeech Recognition API currently disabled