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

Error Status:0 when trying to load dfa and dict files via constructor #12

Open
BrianAdams opened this issue Oct 6, 2014 · 3 comments
Open
Labels

Comments

@BrianAdams
Copy link

Is there a working example of loading a custom vocabulary?

I've tried, but whenever I pass the location of the dfa and dict files to the Julius constructor I get the error message below. Even passing in the same sample files that the system defaults to gives the same error message. Please note that the error is different than not finding the file which gives an XMLHttpRequest exception instead, so the system is finding the file.

julius = new Julius(); //works
julius = new Julius('voxforge/sample.dfa','voxforge/sample.dict'); //fails
julius = new Julius('< full path >/voxforge/sample.dfa','< full path >/voxforge/sample.dict'); //fails

Error: Couldn't load file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/voxforge/sample.dfa. Status: 0 : Error
    at stackTrace (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:1235:15)
    at Object.FS.handleFSError (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:2650:62)
    at _read (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:5828:12)
    at ew (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:7641:99089)
    at kw (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:7641:105411)
    at iw (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:7641:103573)
    at dw (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:7641:98074)
    at hw (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:7641:101813)
    at st (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:7625:89226)
    at Ft (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:7625:102550) VM146:93recognizer.onmessage 
@zzmp zzmp added the bug label Oct 6, 2014
@zzmp
Copy link
Owner

zzmp commented Oct 6, 2014

I had an example, but never got to committing it. I'll get one up later this week, and make sure to annotate/share the code in this repo.

@BrianAdams
Copy link
Author

Thanks!

@dansitu
Copy link

dansitu commented Oct 13, 2014

I'm using juliusjs in node-webkit and ran into the same problem. I found that I could fix the error by replacing line 70 and 71 in worker.js's createLazyFile calls with createPreloadedFile (it has the same method signature). Not sure if my node-webkit environment contributed to the problem.

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

3 participants