Skip to content

luma/node-pocketsphinx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PocketSphinx for Node.js

A Node.js Binding for PocketSphinx

This module aims to allow basic speech recognition on portable devices through the use of PocketSphinx. Much of its API is based on the PocketSphinx WP Demo application and it aims to provide enough functionality for basic speech recognition tasks.

Example

var PocketSphinx = require('pocketsphinx');

var ps = new PocketSphinx({
	hmm: '/file/path',
	lm: '/file/path',
	dict: '/file/path',
	samprate: 16000,
	nfft: 512
}, function(err, hypothesis, score) {

});

ps.addKeyphraseSearch("keyphrase_name", "keyphrase");
ps.addKeywordSearch("keyword_name", "/file/path");
ps.addGrammarSearch("grammar_name", "/file/path");
ps.addNgramSearch("ngram_name", "/file/path");

ps.search = "keyphrase_name";

ps.start();
ps.write(data);
ps.stop();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 84.9%
  • HTML 7.7%
  • JavaScript 4.8%
  • Python 2.6%