# system.util.playSoundClip not working?

**URL:** <https://forum.inductiveautomation.com/t/system-util-playsoundclip-not-working/30164>\
**Category:** Ignition Early Access\
**Created:** [November 21, 2019, 10:02pm UTC](https://forum.inductiveautomation.com/t/system-util-playsoundclip-not-working/30164 "2019-11-21T22:02:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ntsib](https://avatars.discourse-cdn.com/v4/letter/n/4af34b/32.png) [@ntsib](https://forum.inductiveautomation.com/u/ntsib)\
**Post date:** [November 21, 2019, 10:02pm UTC](https://forum.inductiveautomation.com/t/system-util-playsoundclip-not-working/30164/1 "2019-11-21T22:02:52Z")

</div>

Hello Forum,

I am trying to play a sound every time an alarm is going active but i cant get it very well, my main problem is that i have a lot of alarms (about 3000) so i cant get it through a single soundplayer component.  
I tried to make things work through tag event scripts inside every tag. In alarm active section i done something like this:

if alarmName == “Alarm”:  
system.util.playSoundClip(“C:\Users\nikos\Documents\sound.wav”)

but it didnt work.

It seems like system.util.playsoundclip doesnt work??!!

Any ideas how can i play a sound in every alarm activated?

---

<div class="post-metadata">

**Author:** ![christopher.green](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@christopher.green](https://forum.inductiveautomation.com/u/christopher.green)\
**Post date:** [November 22, 2019, 4:44pm UTC](https://forum.inductiveautomation.com/t/system-util-playsoundclip-not-working/30164/2 "2019-11-22T16:44:36Z")

</div>

I’m also trying to get the playSoundClip to work for alarm annunciation and it’s not playing a sound. It doesn’t work on 8.0.6 rc1 but I was able to get it to work on 8.0.4 rc1. Is this a bug?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 22, 2019, 5:02pm UTC](https://forum.inductiveautomation.com/t/system-util-playsoundclip-not-working/30164/3 "2019-11-22T17:02:50Z")

</div>

What scope are you trying to play the sound clip in?

I think there are complications trying to play a sound on the gateway because it’s running as service.

---

<div class="post-metadata">

**Author:** ![ntsib](https://avatars.discourse-cdn.com/v4/letter/n/4af34b/32.png) [@ntsib](https://forum.inductiveautomation.com/u/ntsib)\
**Post date:** [November 25, 2019, 6:07pm UTC](https://forum.inductiveautomation.com/t/system-util-playsoundclip-not-working/30164/4 "2019-11-25T18:07:38Z")

</div>

I am trying to play a wav file. I use exactly the same syntax as the manual of the function says.

I use the sound player to play the wav file and its working but i cant with the function.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [November 25, 2019, 7:50pm UTC](https://forum.inductiveautomation.com/t/system-util-playsoundclip-not-working/30164/5 "2019-11-25T19:50:38Z")

</div>

> [@Kevin.Herron](#):
>
> What scope are you trying to play the sound clip in?

This is an important question, which you haven't answered, @ntsib . The playSoundClip() function will run on the Gateway, and so that is where the sound will play. If your local machine is not the machine which hosts the Gateway, you will not hear the sound if supplying a wavFile argument.

The Sound Player only works because the .wav file becomes embedded as part of the component, so - as the docs imply - the file doesn't need to be shared or referenced by the local machine because it IS a part of the component.

---

<div class="post-metadata">

**Author:** ![ntsib](https://avatars.discourse-cdn.com/v4/letter/n/4af34b/32.png) [@ntsib](https://forum.inductiveautomation.com/u/ntsib)\
**Post date:** [November 25, 2019, 8:17pm UTC](https://forum.inductiveautomation.com/t/system-util-playsoundclip-not-working/30164/6 "2019-11-25T20:17:40Z")

</div>

Thank you guys i moved the files to VM local machine and it worked.
