Skip to content
Oto
Esc
↑↓navigate↵open⌘Jpreview
On this page

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. No wasm-bindgen, zero JS glue, and zero WASM imports.
  • Automatic SIMD selection. On load, the page probes for WebAssembly simd128 support and picks oto-simd.wasm automatically, falling back to oto-scalar.wasm on older browsers.
  • No SharedArrayBuffer required. Because everything runs synchronously inside the AudioWorklet on a 512-sample hop ring (one hop every four 128-sample render quanta), the live demo works on any static host over HTTPS (or localhost) 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

  1. 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.
  2. Custom .otow weights — Load any local .otow model file directly via the file picker.
  3. Worker benchmark — Measure racing (back-to-back) and paced (1 hop per 10.67 ms) kernel timings in a Web Worker.
  4. OfflineAudioContext throughput — Run 20 seconds of audio through the real worklet.js processor 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 AudioContext at 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 AudioContext and device latency, which the live view reports in the log.
  • Timer precision. Without cross-origin isolation headers, performance.now() is coarsened in Workers and Date.now() runs in 1 ms steps inside the worklet. Use oto bench --live or pnpm bench 5 in web/ for microsecond-accurate timings.
Launch the live browser demo →