Cross-Correlation:
FFT from dsp.js
Difference sample by sample
Source:
Microphone
Simulate recording
Latency test