sherpa-onnx speaker diarization (WebAssembly)

Prebuilt WebAssembly assets for fully on-device speaker diarization ("who spoke when"), redistributed for the TranscriptAI / FileWhirl on-device audio features so they can be fetched with CORS at runtime and cached in the browser. No audio leaves the device.

These are the unmodified prebuilt artifacts from sherpa-onnx v1.13.7 (k2-fsa), speaker-diarization WASM target. The pipeline is pyannote-segmentation-3.0 (ONNX) + a speaker-embedding model + agglomerative clustering, all inside the wasm module. The models are baked into the .data preload.

Files

  • sherpa-onnx-wasm-main-speaker-diarization.js / .wasm / .data โ€” the Emscripten build
  • sherpa-onnx-speaker-diarization.js โ€” the JS API wrapper (createOfflineSpeakerDiarization)

Usage

Load the three scripts (define Module = {} with onRuntimeInitialized first), then: const sd = createOfflineSpeakerDiarization(Module); const segments = sd.process(float32Mono16k); Each segment is { start, end, speaker } (seconds, integer cluster id).

Attribution & licenses

Redistributed under the above terms with attribution.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support