1.0.1 • Published 6 years ago
speech-to-text-stream v1.0.1
speech-to-stext-stream
Simple text-stream wrapper around the WebSpeech API for Google Chrome.
Usage
var recognizer = new SpeechToTextStream()
button.onclick = function () {
recognizer.start() // Can only be started by user interaction
}
recognizer.on('data', function (token) {
// token is one spoken word
})
recognizer.on('speechstart', function (token) {
// speech has been recognized
})
recognizer.on('speechend', function (token) {
// speech has stopped or paused
})