This module aims to allow basic speech recognition on portable devices through the use of PocketSphinx.
Windows installation is not supported yet.
To build this module you need to have following dependencies:
npm install -g cmake-js)
Make sure that pocketsphinx is installed properly, adjust LD_LIBRARY_PATH if libraries are not found. You can test pocketsphinx with
pocketsphinx_continuous -infile goforward.raw // Recognize goforward.raw file
Make sure that PKG_CONFIG_PATH includes the folder where you installed pocketsphinx, for example, if you installed with default prefix, export PKG_CONFIG_PATH:
You can test installation with
pkg-config --modversion pocketsphinx // This should print the version
To build simply use npm install, it should detect everything automatically. Carefully read build logs in order to see if there are any issues.
var fs = ;var ps = ps;modeldir = "../../pocketsphinx/model/en-us/"var config = ;config;config;config;var decoder = config;fs;