node-pocketsphinx icon indicating copy to clipboard operation
node-pocketsphinx copied to clipboard

Cannot find module ./build/Debug/binding

Open risseraka opened this issue 10 years ago • 3 comments

After installing the module with npm install, I get this error when running index.js or requiring it:

Error: Cannot find module './build/Debug/binding'

Looking inside build folder, there is only a Release folder which is confusing.

risseraka avatar Aug 01 '14 12:08 risseraka

In order to get this to work you will need to build the binding using node-gyp.

sudo npm install -g node-gyp node-gyp configure cd node-pocketsphinx node-gyp build

Change the demo.js to require ./build/Release/binding or build a debug version.

This worked for me, but the demo doesn't work for me yet (keeps saying text shows here). -- edit: demo works for me, needed to close tab and reopen connection to localhost:3000, simply refreshing doesn't work, and the demo app needs to be restarted every run. Getting a very low accuracy, but just need to configure pocketsphinx more.

martijndeb avatar Aug 02 '14 19:08 martijndeb

npm install does the job.

Demo does not work either for me. It does detect a few words but it never get across to the browser. Also, server crashes from time to time by segmentation fault.

Guess I'll find another way to stream audio to pocketsphinx.

risseraka avatar Aug 02 '14 20:08 risseraka

There are still a few bugs with this code due to my inexperience with libuv. If you want to contribute I encourage you to fork, or if you have any feedback I'd love to hear it. On Aug 2, 2014 1:45 PM, "Adrien Risser" [email protected] wrote:

npm install does the job.

Demo does not work either for me. It does detect a few words but it never get across to the browser. Also, server crashes from time to time by segmentation fault.

Guess I'll find another way to stream audio to pocketsphinx.

— Reply to this email directly or view it on GitHub https://github.com/moneppo/node-pocketsphinx/issues/2#issuecomment-50973832 .

moneppo avatar Aug 03 '14 14:08 moneppo