Yuhin / annyang

A javascript library for adding voice commands to your site, using speech recognition.

Home Page:https://www.talater.com/annyang/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

annyang!

A tiny javascript SpeechRecognition library that lets your users control your site with voice commands.

annyang has no dependencies, weighs just 2kb, and is free to use and modify under the MIT license.

Demo

Visit the demo and docs site

Usage

It's as easy as adding one javascript file to your document, and defining the commands you want.

<script src="//cdnjs.cloudflare.com/ajax/libs/annyang/1.1.0/annyang.min.js"></script>
<script>
if (annyang) {
  // Let's define a command.
  var commands = {
    'show tps report': function() { $('#tpsreport').show(); }
  };

  // Add our commands to annyang
  annyang.addCommands(commands);

  // Start listening.
  annyang.start();
}
</script>

For more details, visit the demo and docs site.

Author

Tal Ater: @TalAter

License

Licensed under MIT.

About

A javascript library for adding voice commands to your site, using speech recognition.

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

License:MIT License