speech-to-text-stream

1.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i speech-to-text-stream

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.97 kB

    Total Files

    6

    Last publish

    Collaborators

    • rationalcoding