Skip to content

[Bug] Module not loading (whisper.wasm) #88

@erkkimon

Description

@erkkimon

ERROR
I get two errors out of the whisper.wasm when running locally an instance compiled myself: "Uncaught TypeError: Module.FS_createDataFile is not a function at reader.onload (index.html:280:28)" and "Uncaught TypeError: Module.init is not a function at onProcess (index.html:449:39) at HTMLButtonElement.onclick (index.html:157:61)". The problem seems to lie in loading Module but I couldn't figure out how to fix it.

REPRODUCTION & SYMPTOMS
I compiled the web version using Mac OS X Monterey 12.6. All went fine with the compilation. Then I copied index.html, whisper.js and libwhisper.worker.js in same folder. All files are in the root of the same folder. But when I I choose file for Model or Audio file inputs, I get the errors mentioned above (and in the screenshot). Is this a potential bug or am I doing something wrong?

DIAGNOSABLE
module-error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions