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

There is now pocketsphinx in 100% javascript

Open willemmulder opened this issue 11 years ago • 4 comments

I just came across pocketsphinx in 100% javascript! See this repository: https://github.com/syl22-00/pocketsphinx.js.

Would it be an idea to use that instead of the c-version: it cuts down on dependencies and might increase usability and ease-of-use tremendously

willemmulder avatar Oct 08 '14 11:10 willemmulder

Nifty! Part of the purpose of this project was eventually to get speech recognition support on lower-end hardware, e.g. Raspberry Pi. Do we think an emscripten implementation would have good enough performance on that kind of hardware?

On Wed, Oct 8, 2014 at 7:23 AM, Willem Mulder [email protected] wrote:

I just came across pocketsphinx in 100% javascript! See this repository: https://github.com/syl22-00/pocketsphinx.js.

Would it be an idea to use that instead of the c-version: it cuts down on dependencies and might increase usability and ease-of-use tremendously

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

moneppo avatar Oct 08 '14 13:10 moneppo

Emscripten is said to have 70% of native performance, which is pretty nice. Also, it prevents talking from Nodejs to Sphynx and back, so there's some gain there.

By the way: there's notes about performance on the wiki page: https://github.com/syl22-00/pocketsphinx.js#8-notes-about-speech-recognition-and-performance but don't get confused when it says "it has the same performance as other compiled versions"; the wiki is talking about performance as in 'how good is it in recognizing text' not 'how fast is it'.

willemmulder avatar Oct 08 '14 13:10 willemmulder

Yea, I read that. 70% seems pretty good! Emscripten is some black magic.

I may still keep node-pocketsphinx up - we have some improvements in the pipe. However I will add a link to this project so people can make good decisions.

Thanks for the link!

On Wed, Oct 8, 2014 at 9:45 AM, Willem Mulder [email protected] wrote:

Emscripten is said to have 70% of native performance, which is pretty nice. Also, it prevents talking from Nodejs to Sphynx and back, so there's some gain there.

By the way: there's notes about performance on the wiki page: https://github.com/syl22-00/pocketsphinx.js#8-notes-about-speech-recognition-and-performance but don't get confused when it says "it has the same performance as other compiled versions"; the wiki is talking about performance as in 'how good is it in recognizing text' not 'how fast is it'.

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

moneppo avatar Oct 08 '14 14:10 moneppo

Sure! And you thanks for node-pocketsphinx :-)

willemmulder avatar Oct 08 '14 14:10 willemmulder