Is binaryen the right tool for this? #5749
-
I am trying to compile eSpeak NG to WASM for use in the browser, to support SSML input and processing. After building and isolating the files needed to successfully run
I understand there is this work https://www.masswerk.at/mespeak/based off of https://github.com/kripken/speak.js. I am trying to learn the process of achieving the task. How do I proceed cross-compiling to WASM for use in the browser? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Binaryen is a wasm->wasm optimizer. It sounds like you are porting a codebase to wasm, for which you need a toolchain like Emscripten. There is a tutorial which you might find useful: https://emscripten.org/docs/getting_started/Tutorial.html And here are docs for building something larger than a single file, which is I assume the case for espeak-ng: https://emscripten.org/docs/compiling/Building-Projects.html |
Beta Was this translation helpful? Give feedback.
-
Don't we still need to run
which downloads among other programs Node.js |
Beta Was this translation helpful? Give feedback.
Binaryen is a wasm->wasm optimizer. It sounds like you are porting a codebase to wasm, for which you need a toolchain like Emscripten. There is a tutorial which you might find useful:
https://emscripten.org/docs/getting_started/Tutorial.html
And here are docs for building something larger than a single file, which is I assume the case for espeak-ng:
https://emscripten.org/docs/compiling/Building-Projects.html