# Play sound when alarm occurs

**URL:** <https://forum.inductiveautomation.com/t/play-sound-when-alarm-occurs/9118>\
**Category:** Ignition\
**Created:** [September 30, 2014, 3:23pm UTC](https://forum.inductiveautomation.com/t/play-sound-when-alarm-occurs/9118 "2014-09-30T15:23:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![george](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/george/32/14066_2.png) [@george](https://forum.inductiveautomation.com/u/george)\
**Post date:** [September 30, 2014, 3:23pm UTC](https://forum.inductiveautomation.com/t/play-sound-when-alarm-occurs/9118/1 "2014-09-30T15:23:07Z")

</div>

I’m pretty sure I know the answer to this but just thought I’d check.

I want to play an audio file when an alarm occurs.

I gather this can be accomplished with the Sound Player component.

But this needs to be placed on a window.

So am I right in thinking I need to put this on a window that is always open, e.g. my navigation bar?

Thanks.

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [September 30, 2014, 3:34pm UTC](https://forum.inductiveautomation.com/t/play-sound-when-alarm-occurs/9118/2 "2014-09-30T15:34:10Z")

</div>

there is also a script function that you can try out  
system.util.playSoundClip

I havent tried it though.

---

<div class="post-metadata">

**Author:** ![rafa2k15](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@rafa2k15](https://forum.inductiveautomation.com/u/rafa2k15)\
**Post date:** [November 13, 2017, 6:39pm UTC](https://forum.inductiveautomation.com/t/play-sound-when-alarm-occurs/9118/3 "2017-11-13T18:39:00Z")

</div>

Hi, could you help me how to use the script

system.util.playSoundClip

with a sound archive I have in my hard disk…?

TKS
