How to trigger a audio sound when an active alarm occur?

I have a tag for ActiveAlarmCounter.
When the value no equal zero, trigger a audio file
image

How to use the
system.util.playSoundClip(wavFile [, volume] [, wait])
to make the sound

Is there any way to set a sound on the tag setting?

From the manual:

When calling this function from Perspective, the script also executes on the Gateway, meaning the caveat above about allowing services to play sounds is a factor. In addition, the sound will play on the Gateway, not the session. To play sounds from a Perspective Session, it's recommended to use the play() component method on the Perspective Audio component.

1 Like

I normally have a header always fixed to the top of my perspective pages, can add an audio component that plays based on an expression.

1 Like