Skip to content

Error in Production #24

@MaxttcYT

Description

@MaxttcYT

i load vosklet like that:

async function loadVoskletModule() {
  vosklet = await loadVosklet();
  vosklet_model = await vosklet.createModel("https://ccoreilly.github.io/vosk-browser/models/vosk-model-small-en-us-0.15.tar.gz", "English", "vosk-model-small-en-us-0.15");
  setTimeout(() => {
    document.getElementById("loading_container").classList.add("done-loading");
  }, 500);
}

// Initialize the application when DOM is ready.
if (document.readyState !== "loading") {
  loadVoskletModule();
} else {
  document.addEventListener("DOMContentLoaded", loadVoskletModule);
}

it works localy but when i push to my server (cambly.maxttc.me) it will return

Vosklet.js:1 ERROR (VoskAPI:Model():model.cc:131) Folder '/A' does not contain model files. Make sure you specified the model path properly in Model constructor. If you are not sure about relative path, use absolute path specification.
R @ Vosklet.js:1
$func1186 @ Vosklet.wasm:0xe2825
$func62 @ Vosklet.wasm:0x35da
$func58 @ Vosklet.wasm:0x330a
$func2016 @ Vosklet.wasm:0x1b526c
$func2056 @ Vosklet.wasm:0x1c3245
Ka @ Vosklet.js:1Fehler nachvollziehenAI
Vosklet.js:1 Uncaught 71234808

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions