Whistle detector