speech2text
v2.0.6
Published
Native javascript library for recognization speech & converting into text
Downloads
3
Maintainers
Readme
speech2text
Speech Recognization with Native Javascript
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);
});