wfloat-web
v0.0.5
Published
``` python3 -m http.server 8000 ```
Readme
wfloat-web
python3 -m http.server 8000Browser wrapper around sherpa-onnx (WASM).
Usage
This package ships large WASM artifacts that must be served as static files:
sherpa-onnx-wasm-main-tts.jssherpa-onnx-wasm-main-tts.wasmsherpa-onnx-wasm-main-tts.data
Then, load the module at runtime:
import { getModule, getSherpaOnnxVersion } from "wfloat-web";
const Module = await getModule({ baseUrl: "/wasm/wfloat/" });
console.log(getSherpaOnnxVersion(Module));Phoenix / LiveView (esbuild)
Don’t bundle sherpa-onnx-wasm-main-tts.js with esbuild. Serve the files under a stable URL (e.g. priv/static/wasm/wfloat/) and pass that URL as baseUrl.
