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

Add wasm #64

Open
thewh1teagle opened this issue Dec 25, 2024 · 2 comments
Open

Add wasm #64

thewh1teagle opened this issue Dec 25, 2024 · 2 comments
Assignees
Labels
feature New feature or request

Comments

@thewh1teagle thewh1teagle added the feature New feature or request label Dec 25, 2024
@thewh1teagle thewh1teagle self-assigned this Dec 25, 2024
@csukuangfj
Copy link

I found that you are asking at
https://users.rust-lang.org/t/build-library-with-wasm-and-cmake-rs/123022

FYI: We use
https://github.com/k2-fsa/sherpa-onnx/blob/master/build-wasm-simd-asr.sh#L17
to build sherpa-onnx for wasm, which is using emsdk 3.1.53

If you use a different version of emsdk, you are likely to fail.

@thewh1teagle
Copy link
Owner Author

thewh1teagle commented Dec 26, 2024

I found that you are asking at https://users.rust-lang.org/t/build-library-with-wasm-and-cmake-rs/123022

FYI: We use https://github.com/k2-fsa/sherpa-onnx/blob/master/build-wasm-simd-asr.sh#L17 to build sherpa-onnx for wasm, which is using emsdk 3.1.53

If you use a different version of emsdk, you are likely to fail.

Thanks!
I successfully compiled sherpa with emcc however the Rust crate wasm-bindgen that creates the js bindings currently have some issues with emcc ABI. Is there a way to build sherpa with other wasm target? In rust the target that should work called wasm32-unknown-unknown instead of wasm32-unknown-emscripten that has issues.

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

No branches or pull requests

2 participants