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

Support For WebGL (Wasm) and alternative model loading methods #1706

Open
adem-rguez opened this issue Jan 13, 2025 · 3 comments
Open

Support For WebGL (Wasm) and alternative model loading methods #1706

adem-rguez opened this issue Jan 13, 2025 · 3 comments

Comments

@adem-rguez
Copy link

adem-rguez commented Jan 13, 2025

Hello again,
this time, i am trying to build for WebGL (in unity) using sherpa-onnx TTS,
so i am looking for a the corresponding wasm plugin, and jslib files,
also i want to ask if it's possible to provide alternative methods when providing the model path, that take the model file instead of its path (both for c-api .so and and for webgl .wasm and jslibs, thank you!

@csukuangfj
Copy link
Collaborator

@adem-rguez
Copy link
Author

thank you, i found the wasm, but what about the second part of my question, is it possible to provide alternative functions that take the raw models file, instead of their path? ( .wasm, .so and .dll files)

@csukuangfj
Copy link
Collaborator

i want to ask if it's possible to provide alternative methods when providing the model path, that take the model file instead of its path

It is doable, but we don't support it now.

You can change the code to support passing a char* buf and int32_t buf_len instead of the path to the model file.

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

2 participants