Add Voice Control In Website With JavaScript – Voix.js


On any websites, Mouse is the primary method of input on desktop and touch on mobile devices. Few websites also implement keyboard shortcuts for few operations. But what if you want to add voice control to perform actions and navigate to other part of the website. Yes, you can do with the help of Javascript.

Also read: Adding Keyboard Shortcuts To Your Website With Mousetrap

Voix.js is a nice JavaScript library which lets you add voice control on your website. Use is almost similar like we do for other Js based libraries.

Just include the JS in your HTML file.

Then create a new instance:

To set a voice command for an event, use the below code. In the below example, it will set ‘Play’ voice command for  action.

Read more about this JS library on its official website.


It is worth to mention that this library works only in Google Chrome. So, take care this and add a note on your website for users if you are planning to use it in your website.


Written by Deepanker

Deepanker Verma is the founder of Techlomedia. He is a tech blogger, developer and gadget freak.

Leave a Reply

Your email address will not be published. Required fields are marked *


“Just Delete Me” Helps You in Deleting Your Accounts From 350+ Websites

Image To Base64 Data URI Converter PHP

How to convert image to Base 64 Data URI in PHP