0.1.2 • Published 8 years ago

speedyspeech v0.1.2

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

speedyspeech

experimental

This is a module to quickly use the Web Speech API to recognize keywords as a user speaks.

Usage

NPM

var speedyspeech = require('speedyspeech');

// these will be keywords that speedyspeech will look for
var keywords = [ 'sports', 'future', 'family' ];

var fastRecog = new speedyspeech({
    keywords: keywords
}, function( err, result, confidence, foundKeyword ) {

    if( err )
        throw err;
    
    // result is the what the person said that speech api picked up
    // confidence is the confidence of the sentence/word uttered
    // foundKeyword is a keyword which was found in the result
    console.log( result, confidence, foundKeyword );
    
    // after you receive a result you must start recognizing again
    fastRecog.start();
});

// start's speech recognition
fastRecog.start();

// stop's speech recognition
// fastRecog.stop();

// change keywords
// fastRecog.setKeywords([ 'some', 'new', 'keywords' ]);

License

MIT, see LICENSE.md for details.

0.1.2

8 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago