Browser Demo (WASM)
Test Oto-1 Clean, Oto-1 Isolate, and the Voice Enhancer live on your microphone right in the browser with WebAssembly SIMD.
You don’t need to install anything to hear Oto-1 on your own microphone. The live browser demo runs the exact same pure-Rust Oto-1 kernel (crates/oto-wasm) inside a Web Audio AudioWorkletProcessor.
How it works in the browser
- Pure-Rust
wasm32-unknown-unknown. Nowasm-bindgen, zero JS glue, and zero WASM imports. - Automatic SIMD selection. On load, the page probes for WebAssembly
simd128support and picksoto-simd.wasmautomatically, falling back tooto-scalar.wasmon older browsers. - No
SharedArrayBufferrequired. Because everything runs synchronously inside theAudioWorkleton a 512-sample hop ring (one hop every four 128-sample render quanta), the live demo works on any static host over HTTPS (orlocalhost) without COOP/COEP headers. - Overload protection. After 300 warm-up hops (so V8 tiers the WASM up to TurboFan), the processor monitors hop latency every second. If more than 2% of hops exceed 2 ms, Oto-1 Clean switches to matched-delay dry bypass while Oto-1 Isolate fails closed to silence.
What you can test at /demo
- Live microphone — Pick Oto-1 Lite Clean or Oto-1 Lite Isolate (recommended for live browser AudioWorklet use within the 2 ms single-quantum budget) or test the full-size Oto-1 Clean / Isolate (1.1M Q8) desktop models, click Start live mic, toggle bypass (matched delay) to hear raw vs cleaned audio at identical alignment, and switch Voice Enhancer presets (
Off,Natural,Warm,Broadcast) live. - Custom
.otowweights — Load any local.otowmodel file directly via the file picker. - Worker benchmark — Measure racing (back-to-back) and paced (1 hop per 10.67 ms) kernel timings in a Web Worker.
- OfflineAudioContext throughput — Run 20 seconds of audio through the real
worklet.jsprocessor to measure all-in hop cost including ring-buffer plumbing.
Browser demo caveats
- 48 kHz only. The browser demo does not bundle a resampler; if your browser opens the
AudioContextat another sample rate (such as 44.1 kHz), Oto-1 stays bypassed (and Oto-1 Isolate stays silent unless you check Bypass). The native macOS app resamples any input rate automatically. - Added latency. Chain delay is 1024 samples (21.33 ms), plus your browser’s own
AudioContextand device latency, which the live view reports in the log. - Timer precision. Without cross-origin isolation headers,
performance.now()is coarsened in Workers andDate.now()runs in 1 ms steps inside the worklet. Useoto bench --liveorpnpm bench 5inweb/for microsecond-accurate timings.