realtime detection of sound and playback