Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old cdn files no longer available #164

Open
Mijawel opened this issue Dec 4, 2024 · 4 comments
Open

Old cdn files no longer available #164

Mijawel opened this issue Dec 4, 2024 · 4 comments

Comments

@Mijawel
Copy link

Mijawel commented Dec 4, 2024

<script src="https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.js" defer=""></script> <script src="https://cdn.jsdelivr.net/npm/@ricky0123/vad-web/dist/bundle.min.js" defer=""></script>

There seems to be an issue where these older files call other files like "https://cdn.jsdelivr.net/npm/[email protected]/dist/ort-wasm-simd-threaded.mjs" and a model that is no longer available.

I updated the project to use:

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ort.js"></script> <script src="https://cdn.jsdelivr.net/npm/@ricky0123/[email protected]/dist/bundle.min.js"></script>

And it now works again. But I was just wondering if there is a time when these scripts will also fail?

@ricky0123
Copy link
Owner

Hi @Mijawel I'm glad you were able to solve your problem. Your new script tags will not fail because you are specifying the version number of both packages. Hope that helps

@George3d6
Copy link

It's unclear to me how to make this work with the react-native version of vad, which seems to require ort-wasm-simd-threaded.mjs specifically

@ricky0123
Copy link
Owner

Hi @George3d6 this project doesn't work with react native

@ricky0123
Copy link
Owner

Hi @Mijawel I see what you mean now about the model files disappearing from the CDN. I didn't realize that was happening. I'm not sure what the best solution is. The script tags are mostly meant to help people get started - if you have created an app that you want to be widely and reliably available, I suggest overriding the baseAssetPath option and hosting the model file yourself. If I find a better solution, I will update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants