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
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: