node-pocketsphinx
node-pocketsphinx copied to clipboard
Cannot find module ./build/Debug/binding
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.
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.
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.
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 .