algorithm for detection audio noise and sound