bindings/web/packages/onnx/README.md
ONNX/Sherpa WASM backend for the RunAnywhere Web SDK — embeddings, STT, TTS, and VAD in the browser.
npm install @runanywhere/[email protected] @runanywhere/[email protected]
See the Web SDK README for bundler configuration and cross-origin isolation headers.
import { RunAnywhere, SDKEnvironment } from '@runanywhere/web';
import { ONNX } from '@runanywhere/web-onnx';
await RunAnywhere.initialize({
environment: SDKEnvironment.SDK_ENVIRONMENT_DEVELOPMENT,
});
await ONNX.register();
await RunAnywhere.completeServicesInitialization();
const transcript = await RunAnywhere.transcribe(audioSamples, {
sampleRate: 16_000,
});
See the Web SDK README for model lifecycle and Vite setup.
RunAnywhere License. See LICENSE.