Actually use sample rate

Need to record at the given sample rate if we want it work with detection algorithms.