Download Latest Version annyang v3.1.0 source code.zip (110.4 kB) Google Add to Preferred Sources
Home / v3.1.0
Name Modified Size InfoDownloads / Week
Parent folder
annyang v3.1.0 source code.tar.gz 2026-10-06 100.0 kB
annyang v3.1.0 source code.zip 2026-10-06 110.4 kB
README.md 2026-10-06 1.2 kB
Totals: 3 Items   211.6 kB 0

More forgiving voice commands

Speech recognition sometimes adds punctuation to what you say. annyang now handles common sentence punctuation automatically, with no new options to configure.

:::js
annyang.addCommands({
  'hello there': () => { console.log('Hello!'); },
});

// All three match the same command:
annyang.trigger('hello there');
annyang.trigger('Hello there!');
annyang.trigger('Hello, there.');

Commands written with punctuation, like 'Hello, there!', work too.

New Features

  • More forgiving punctuation matching — String commands tolerate sentence-ending periods, exclamation marks, and question marks after literal text, and commas between literal words. Captured values and custom regular expressions are unchanged.

Bug Fixes

  • Unicode case-insensitive matching — String commands now correctly match uppercase and lowercase letters outside the basic multilingual plane, including Deseret and Osage.

Internal

  • Updated development dependencies to address security advisories.
  • Kept the patched humanfs dependency compatible with Node.js versions below 24.
Source: README.md, updated 2026-10-06