gitwtfhub

wtf is speech.js?

yyx990803/speech.js — explained in plain English

Analysis updated 2026-07-18 · repo last pushed 2014-01-29

99JavaScriptAudience · developerComplexity · 2/5DormantSetup · easy

TL;DR

A lightweight JavaScript wrapper around Chrome's speech recognition API that turns spoken words into text for search boxes, note-taking, or accessibility features.

Mindmap

mindmap
  root((repo))
    What it does
      Captures microphone audio
      Converts speech to text
      Emits speaking events
    Tech stack
      JavaScript
      Chrome Speech API
    Use cases
      Voice search bars
      Hands-free note apps
      Accessibility features
    Audience
      Web developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Add a voice search bar that converts spoken queries into text

REASON 2

Build a hands-free note-taking app using continuous listening mode

REASON 3

Show real-time interim text as a user is still speaking for a live transcription feel

REASON 4

Add voice-controlled accessibility features for users who can't type

What's in the stack?

JavaScript

How it stacks up

yyx990803/speech.jsmrxujiang/hicadskevy/babel-preset-react-native-stage-0
Stars9999101
LanguageJavaScriptJavaScriptJavaScript
Last pushed2014-01-292017-11-28
MaintenanceDormantDormant
Setup difficultyeasymoderateeasy
Complexity2/53/52/5
Audiencedevelopervibe coderdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Relies on Chrome's built-in speech recognition, which sends audio to Google's servers for processing.

Wtf does this do

Speech.js is a JavaScript library that lets you add voice recognition to web pages. Instead of typing or clicking, users can speak into their browser's microphone and have their words converted to text, useful for search boxes, voice commands, note-taking apps, or accessibility features. Under the hood, it's a simplified wrapper around Chrome's built-in speech recognition API. Rather than wrestling with the raw API's quirks, you create a Speech object with a few settings, then listen for events like "the user started speaking" or "here's what they said." The library handles the plumbing: it captures audio, sends it to Google's servers (which do the actual speech-to-text work), and sends results back to your code. You then decide what to do with the recognized words, display them on the page, submit a search, trigger an action, whatever you want. The library supports 80+ languages and regional accents, from English in Australia to Mandarin Chinese. You can also fine-tune behavior: enable continuous listening so it doesn't stop after one sentence, show interim results as the user is still speaking (so they see partial text updating in real time), or auto-restart if the connection drops. A debugging mode logs everything to the browser console to help you troubleshoot. Who would use this? Any web developer building voice-first features, a voice search bar, a hands-free note app, a voice-controlled game, or a smart home dashboard. It's particularly valuable for accessibility, letting users who can't type or prefer speaking interact with your site. Since it wraps a browser feature rather than building speech recognition from scratch, it's lightweight and relies on infrastructure that's already there in Chrome.

Yoink these prompts

Prompt 1
Show me how to create a Speech object with speech.js and listen for recognized text events.
Prompt 2
Explain how to enable continuous listening and interim results with this library.
Prompt 3
Help me set up speech.js to auto-restart if the connection drops during voice recognition.
Prompt 4
What languages does speech.js support and how do I switch the recognition language?

Frequently asked questions

wtf is speech.js?

A lightweight JavaScript wrapper around Chrome's speech recognition API that turns spoken words into text for search boxes, note-taking, or accessibility features.

What language is speech.js written in?

Mainly JavaScript. The stack also includes JavaScript.

Is speech.js actively maintained?

Dormant — no commits in 2+ years (last push 2014-01-29).

How hard is speech.js to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is speech.js for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.