Just include the JS in your HTML file.
Then create a new instance:
var voix = new Voix('en-US');
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.