Skip to content
Node.js bindings for CMUSphinx PocketSphinx
Branch: master
Clone or download
Pull request Compare This branch is 73 commits ahead, 1 commit behind moneppo:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
src
LICENSE
README.md
binding.gyp
index.js
package.json

README.md

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, utterance_id) {

});

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();
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.