Skip to content

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

Description

@BrianAdams

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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions