Voice Control Over Web Sites

Annyang is a tiny javascript library that lets your visitors control your site with voice commands.

annyang supports multiple languages, has no dependencies, weighs less than 1kb and is free to use.

 

Simple. Here is all the code needed to achieve that:

<script type="text/javascript" src="annyang.min.js"></script>
<script type="text/javascript">
if (annyang) {
  // Let's define our first command. First the text we expect, and then the function it should call
  var commands = {
    'show tps report': function() {
      $('#tpsreport').animate({bottom: '-100px'});
    }
  };

  // Initialize annyang with our commands
  annyang.init(commands);

  // Start listening. You can call this here, or attach this call to an event, button, etc.
  annyang.start();
}
</script>

Author : https://www.talater.com/annyang/