Skip to content

modern-vanilla example: Failed to construct 'URL': Invalid base URL  #82

@the-7reporter

Description

@the-7reporter

I am trying to get the modern-vanilla example (https://github.com/ccoreilly/vosk-browser/tree/master/examples/modern-vanilla) up and running. when i click the "Start recognition" button, i get the following error:

blob:null/7376b705-c3a4-4d7b-b65c-ecb5551d07ec:121 TypeError: Failed to construct 'URL': Invalid base URL
    at blob:null/7376b705-c3a4-4d7b-b65c-ecb5551d07ec:240:42

this happens right at:
const model = await Vosk.createModel('model.tar.gz');

the model is in the same folder, i also tried to load it from the web, but got the same error:
const model = await Vosk.createModel("https://ccoreilly.github.io/vosk-browser/models/vosk-model-small-en-us-0.15.tar.gz");

what is missing?

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