use case · basics · 1s / 3s / 5s enrollment window & ECAPA voiceprint cosine similarity · WASM fp16 · 49.84 MB

Basics: Enrollment Window & Voiceprint Similarity Playground

onnx/v2/enroll_fp16.onnx expects an exact 3.0 s (48,000-sample) input. Short 1.0 s captures must be tiled with crossfading, 3.0 s fits natively, and 5.0 s lets fitVoxLockEnrollment() pick the loudest 3.0 s voiced span. Compare live ONNX ECAPA cross-attention voiceprints across same-speaker vs different-speaker probes — and sweep how window length affects real isolation quality.

1 · VoxLock v2 worker (49.84 MB fp16 CPU WASM)

2 · Vary enrollment window (1s / 3s / 5s) & score voiceprint match

Initialise VoxLock v2 above to compare live ONNX ECAPA voiceprint embeddings and sweep 1s / 3s / 5s windows.

Reference Enrollment Slice

Loading reference clip…

Comparison Probe Slice

Loading probe clip…

ECAPA v Cosine–
ECAPA k Cosine–
Spectral enroll_n–
Same vs Diff Δ–
Match Verdict–
Enroll ms · NaN–

1 s / 3 s / 5 s Enrollment Window Sweep Results

Comparison of 1s, 3s, and 5s enrollment windows on voiceprint similarity and isolation quality
Window Span Fit Same-Spk Cos (v) Diff-Spk Cos (v) Margin Δ Isolated Target Corr Bystander Cut NaN
Run the 1s / 3s / 5s Window + Isolation Sweep above to measure how enrollment duration changes both voiceprint separation and real target-speaker isolation.

3 · Inspect voiceprint extraction & tensor pooling code

Show the code · worker.js — enrollVoiceprint() (live enroll_fp16.onnx run)
Show the code · voxlock-core.mjs — summarizeVoiceprintTensors() (time-pooled ECAPA vectors)