1.0.1 • Published 6 years ago

speech-to-text-stream v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

speech-to-stext-stream

JavaScript Style Guide

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
})