Skip to main content
InSource Solutions

TN AG114 Play a sound file with ArchestrA Symbol scripting

insource logo large.jpg



With regular InTouch scripting there was the PlaySound() function, but this does not exist in ArchestrA scripting.  The following example will show how to play sounds on an ArchestrA Symbol.


  • Author: Dillon Perera
  • Published: 12/30/2015
  • Applies to: InTouch with ArchetrA Graphics 10.1 and up




To play a sound with an ArchestrA symbol we will need to use Microsoft .NET's System.Media library.  This can be used to play .wav files.


1. Create a button to run the script.

2. On the button add an Action Script animation.

3. Enter the following script, replacing PATHTOFILE with the name of the sound file you would like to play.


'Create a SoundPlayer object
dim SoundPlay as System.Media.SoundPlayer;
SoundPlay = new System.Media.SoundPlayer();


'Point it to the file we want to play
'for example SoundPlay.SoundLocation = "c:\MyAlert.wav"
SoundPlay.SoundLocation = "PATHTOFILE";


'Load the sound file and play it