@runanywhere/web-onnx
v0.20.27
Published
RunAnywhere Web SDK - ONNX backend for STT, TTS, and VAD via sherpa-onnx
Maintainers
Readme
@runanywhere/web-onnx
ONNX/Sherpa WASM backend for the RunAnywhere Web SDK — embeddings, STT, TTS, and VAD in the browser.
Installation
npm install @runanywhere/[email protected] @runanywhere/[email protected]See the Web SDK README for bundler configuration and cross-origin isolation headers.
Usage
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.
Support
License
RunAnywhere License. See LICENSE.
