Description
annyang is a small JavaScript library that adds speech recognition to a website, so visitors can control the page with voice commands. You define the phrases you want to listen for and the functions they should run, and the library listens through the browser and calls your functions when a phrase is spoken. It has no dependencies, weighs about 2 KB, and is released under the MIT licence, so you can use and modify it freely. It can be installed as an ES module, with named imports, through CommonJS, or with a plain script tag that loads the browser build. The project provides a demo and tutorial with live speech recognition samples, an API reference, a FAQ and a changelog. For a visual interface, the author points to Speech KITT, a companion project that adds a button to start or stop listening, shows the listening status and lists sample commands for the user, with several themes. annyang uses the browser's built-in speech recognition, so it depends on the browser support for that feature. The library is written by Tal Ater and is hosted on GitHub.…
Highlights
- Voice commands for any website
- No dependencies and about 2 KB
- ES module, CommonJS and script tag
- Live demos and API reference
- MIT licensed
Ratings & Reviews
No ratings yet
Be the first to rate Annyang.
People also visit
Annyang FAQ
What is annyang?
It is a tiny JavaScript library that lets visitors control your website with voice commands.
How do I use it?
Install annyang, then define the phrases you want to recognise and the functions to run when they are spoken.
What does it depend on?
It has no dependencies and uses the speech recognition built into the browser, so browser support matters.
Is it free?
Yes. annyang is released under the MIT licence and is hosted on GitHub.
Can I add a visual interface?
Yes. The author points to Speech KITT, a companion project with a start and stop button, a status display and sample commands.
Where can I learn more?
The project has a demo and tutorial, an API reference, a FAQ and a changelog.
What are the best Annyang alternatives?
Popular alternatives to Annyang include React Mic, React Modern Audio Player and SpeakThat. See all Annyang alternatives



