Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erros compilation #48

Closed
ghost opened this issue Jan 14, 2016 · 6 comments
Closed

Erros compilation #48

ghost opened this issue Jan 14, 2016 · 6 comments
Labels

Comments

@ghost
Copy link

ghost commented Jan 14, 2016

Help me, please! Errors (toString) when compiling with -DHMM_BASE, -DHMM_FOLDERS. Output file size pocketsphinx.js - 800Kb

222

@syl22-00
Copy link
Owner

Please provide more context and copy/paste code rather than put a screenshot.

I am guessing your issue is because you are trying to package large files which are over the limit (see nodejs/node#3175). If that's the case, there might be ways to reduce the file sizes. Anyways, please provide steps to reproduce your issue.

@ghost
Copy link
Author

ghost commented Jan 14, 2016

cmake -G "MinGW Makefiles" -DEMSCRIPTEN=1 -DCMAKE_TOOLCHAIN_FILE=Emscripten.cmake -DHMM_BASE=models -DHMM_FOLDERS=model ..

Size folder "model" - 70Mb

Model: feat.params -1 Kb, feature_transform - 5 Kb, mdef - 7 Mb, means - 30 MB, mixture_weights - 1 Mb, noisedict - 1 Kb, transition_matrices - 3 Kb, variances - 30 Mb

@syl22-00
Copy link
Owner

With such a large model, you'd better put it outside the main JavaScript file. I guess the file is too large that's why packaging fails. It is explained here:
https://github.com/syl22-00/pocketsphinx.js#ii-package-model-files-outside-the-main-javascript

@ghost
Copy link
Author

ghost commented Jan 15, 2016

syl22-00, verything works, but is sensitive high. how to reduce the threshold, please tell me?

@syl22-00
Copy link
Owner

What threshold are you talking about? Again, you should provide context and steps to reproduce your issues if you want somebody to be able to help you.

@syl22-00
Copy link
Owner

Assuming there is issue left.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant