Sylvain Chevalier
Sylvain Chevalier
I do not have a Windows machine to try out so it is hard for me to guess what is going wrong. `EMSCRIPTEN` is set to 1, right, not false?...
I guess that means the generated JS file is not valid, does it look like a real JavaScript file?
To load the other JS files, such as HMM or dictionary, you can use the load command in `recognizer.js`: https://github.com/syl22-00/pocketsphinx.js#h-loading-files-such-as-acoustic-models-packaged-outside-pocketsphinxjs And, as you said, if you use a statistical language...
So you have to load these files before you initialize the recognizer with the command line arguments you provided. So make sure: - The files are loaded through the `load`...
To be more specific, look at the first lines, you shoule have something like ``` Module['FS_createPath']('/folder', 'file', true, true); ```
Please provide more information wit the steps you took up to that point. My best guess is that the path to emscripten toolchain was not correctly set.
It seems like you do not have `pocketsphinx` (and probably `sphinxbase`) code. It is typically added via submodules as explained in the docs. If you do not want to clone...
Since the archive does not include the `.git` folder, you can't add an origin to it. So you have two choices: - Clone the repo (preferred, just like what the...
It is quite straightforward, you lazy-load your model and dictionary files and then initialize the recognizer with the -lm, -dict, or -hmm parameters as you'd do in the command line....
I an not sure it really makes sense to publish it on npm as: - pocketsphinx.js really does make sense in the web browser. Outside a browser it is far...