## speech2text
Speech Recognization with Native Javascript

[![NPM](https://nodei.co/npm/speech2text.png??downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/speech2text/)

To use, follow the below instructions:

First include library into the page, And here are some instructions to use:

```javascript

/** Initialise the speech Recognization*/
var speech2text = new speech2text();

/** Add some commands if any*/
var commands = {
  play: function() {
    document.querySelector("video").play();
  },
  stop: function() {
    document.querySelector("video").pause();
  }
};
speech2text.addCommands(commands);

/** Start Interacting with SPEECH by allowing your microphone */
speech2text.start(function(voice) {

  // What you say, will be console here
  console.log(voice);
  
  // Optional: Let the robot to speak what you say 
  speech2text.onReadLoud(voice);

});

```

## Demo
[Play with speech recognition demo](https://speech2text-techy.herokuapp.com/)

