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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though JavaScript in Browsers and node.js have an asynchronous, event-driven architecture, sometimes it may be useful to include the core pocketsphinx.js file directly in node or a browser. Using node, there is currently no way (eval doesn't count) to use the library.
I once wrote a small wrapper for libraries supposed to be used in both browser and node.js environments. Have a look!
Because I'm not familiar with emscripten, I don't know if there's a way to automatically pre- and append code, but that would be nice! Maybe a build system like Grunt would be good here.
If there is no option in emscripten, I could also setup a small build script.
The text was updated successfully, but these errors were encountered:
@derhuerst , thanks a lot for your interest. Unless I misunderstood your issue, it is actually easy to use pocketsphinx.js, or any Emscripten generated-library with node.js, without browser environment. For instance:
Even though JavaScript in Browsers and node.js have an asynchronous, event-driven architecture, sometimes it may be useful to include the core
pocketsphinx.js
file directly in node or a browser. Using node, there is currently no way (eval
doesn't count) to use the library.I once wrote a small wrapper for libraries supposed to be used in both browser and node.js environments. Have a look!
Because I'm not familiar with emscripten, I don't know if there's a way to automatically pre- and append code, but that would be nice! Maybe a build system like Grunt would be good here.
If there is no option in emscripten, I could also setup a small build script.
The text was updated successfully, but these errors were encountered: