Hacker News new | ask | show | jobs
by foobarqux 3747 days ago
They need to buffer to get a Fourier transform and to do the autocorrelation.
1 comments

They say they use an "inaudible high frequency soundwave", so that should be > 20kHz. Shouldn't a buffer of a few milliseconds be more than enough then?
Presumably the buffer is longer to make the system more robust by avoiding spurious detections, not because of some fundamental limit like the Nyquist rate. You would need to set the buffer size experimentally.