Detect sound over a sliding window