Make sound alarm silent when alarm back to normal

how to make the alarm sound silent when the alarm event returns to normal?