Voice Control JavaScript Libraries for Developers

In I share one useful and latest information related to “JavaScript”. The topic is Voice Control JavaScript Libraries for Developers. This library helps you to create voice command into your websites.Main five voice control javascript libraries for developers are described here. They are:

  1. annyang.js
  2. Voix.js



  3. Voice-Commands.js
  4. JuliusJS
  5. PocketSphinx.js

1.annyang.js

The annyang is a tiny javascript library. The visitor can control your site with voice commands.
annyang has weighs less than 1kb, no dependencies, and is free to use and modify.
annyang understands commands with named splats, variables, and optional words.




2.Voix.js

The voix.js is a lightweight javascript library. It is used for adding voice command into your sites, apps and games.
Voix.JS is browser compatible and progressively enhancing browsers that support SpeechRecognition, while leaving users with older browsers unaffected.

3. Voice-Commands.js

Voice Command.js is a Simple wrapper for Javascript Speech-to-text to add voice commands.

Example

	if ( SPEECH.isCapable() ) { 
    SPEECH.onStart(function() {
    });
    SPEECH.onStop(function() {
    });
    SPEECH.min_confidence = .2; 
    SPEECH.addVoiceCommands([
        {
            command: "show help",
            callback: function() {

            },
            min_confidence: .5 
        },
        {
            command: /next (slide)?/,
            callback: function() {

            }
        },
        {
            command: /go.+(top|home)/, 
            callback: function() {

            }
        }
    });
    SPEECH.onResult(function(result) {
    });


    SPEECH.start({
        min_confidence: .3
    });
}




4.JuliusJS

The juliusJs is a speech recognition library. It actively listens to the user to transcribe what they are saying through a callback.


var julius = new Julius();

julius.onrecognition = function(sentence) {
console.log(sentence);
};





features

  • Real time transcription
  • 100% javascript implementation

5.PocketSphinx.js

The pocketSphinx.js is speech recognition library. It is fully written in JavaScript. And runs in web browser.
It does not require any browser plugin and also it does not require flash and does not do any server-side processing.

Features




  • All-JavaScript API
  • Support for Keyword spotting
  • Calls can be made through Web Workers or not
  • Support for Finite State Grammars (FSG) input from JavaScript
  • Supports most of the command-line parameters of PocketSphinx



  • Optional audio recording library for real-time recognition.
  • Support for Statistical Language Models input from files, at compile time

If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

Leave a Reply

Your email address will not be published.