2.0.6 • Published 7 years ago

speech2text v2.0.6

Weekly downloads
5
License
MIT
Repository
github
Last release
7 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

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.0

8 years ago