2.0.6 • Published 6 years ago

speech2text v2.0.6

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

speech2text

Speech Recognization with Native Javascript

NPM

To use, follow the below instructions:

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

/** 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

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago