Audible alarm to sound upon pre-specified conditions being met ie mvg avg cross

Any thoughts on creating audible alarm to sound upon pre-specified conditions being met ie mvg avg cross.