# Play Sound Alert when unacknowledged alarm becomes active

**URL:** <https://forum.inductiveautomation.com/t/play-sound-alert-when-unacknowledged-alarm-becomes-active/92462>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 27, 2024, 12:56pm UTC](https://forum.inductiveautomation.com/t/play-sound-alert-when-unacknowledged-alarm-becomes-active/92462 "2024-06-27T12:56:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ftuquabo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ftuquabo/32/29161_2.png) [@ftuquabo](https://forum.inductiveautomation.com/u/ftuquabo)\
**Post date:** [June 27, 2024, 12:56pm UTC](https://forum.inductiveautomation.com/t/play-sound-alert-when-unacknowledged-alarm-becomes-active/92462/1 "2024-06-27T12:56:50Z")

</div>

I'm looking to create some scripting to allow clients to play a sound wave file when a new unacknowledged alarm becomes active in perspective. Has anyone been able to accomplish this before and willing to share? Thanks!

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [June 28, 2024, 4:45pm UTC](https://forum.inductiveautomation.com/t/play-sound-alert-when-unacknowledged-alarm-becomes-active/92462/2 "2024-06-28T16:45:59Z")

</div>

You could put a custom property on a view that the clients will have open when you want the sound to play like this:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/e/3e2a5d814a1a2698c5bc390181bbc6060e46359e.png)

Then add an audio component and a value change scrip that activates the audio component  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/1/61263156def5d93b0dd858f9a91b2d98c3c04cb1.png)

There may be better ways to do this.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [June 28, 2024, 5:09pm UTC](https://forum.inductiveautomation.com/t/play-sound-alert-when-unacknowledged-alarm-becomes-active/92462/3 "2024-06-28T17:09:33Z")

</div>

You could use an alarm listener as @Kyle_Chase described. The topic was for a popup, but you could also use it for your needs.

> [@New Alarm Alert as a Popup](https://forum.inductiveautomation.com/t/new-alarm-alert-as-a-popup/15828/2):
>
> I would start this a different route. It looks like you are polling for changes to alarm states, when really, we should be reacting to events relating to alarm state changes. This is going to be a long winded answer, so hear goes. Create a new shared script. For this example, create it at shared.alarming. The following will create an object, that extends Ignition’s AlarmListener interface. This is how we get the alarm event from the gateway to the client. Post the following code: from c…
