sherpa-onnx icon indicating copy to clipboard operation
sherpa-onnx copied to clipboard

TTS WASM Embedding?

Open helloimalastair opened this issue 1 year ago • 2 comments
trafficstars

Is there a way to build the TTS WASM example in a way that it can be used in a Vite-based project? At the moment, a lot of paths/other stuff appear to be hard-coded for the current setup.

helloimalastair avatar Apr 28 '24 11:04 helloimalastair

it can be used in a Vite-based project?

Have you encountered any issues? If yes, would you mind posting the error logs?

csukuangfj avatar Apr 28 '24 13:04 csukuangfj

The issues I'm hitting mostly come from the TTS system expecting all of the WASM/JS files to be in the same exact configuration(same filename, in the root directory). I tried a bit to work around it, but it is still throwing 404s.

Rewording my above question though, would it be possible for the build process to output an npm-style package, rather than a prebuilt playground?

helloimalastair avatar Apr 28 '24 19:04 helloimalastair