Sound files in sessions

I am trying to learn how to program sessions and have been experimenting with all of it, but I have not been able to figure out "Play Sound". I am not sure how to get a sound to play when I want it to. There are not any clear instructions on that particular subject in the Edit Session menus. Anybody know how?
 
Having just been through a similar process, I'll chip in with my rather limited knowledge.

From what I can tell, the Play Sound rule requires the sound file to be part of an HTML asset. Such an asset can contain several sound files (such as a whole sequence of spoken instructions or dialog to be used throughout a session). The Play Sound rule should be edited to reference a particular HTML asset, and a specific sound file within that asset. An easy example would be to play the 'Default' sound in the GuardsWhistle HTML asset.

In order to have the sound play when you want it to, you'll need to make the PlaySound rule a 'child' rule of whatever needs to trigger it. That could be a trigger check rule, completion of some objective, a Wait... rule, to name but a few. E.g.

Wait (30s)
___PlaySound()

Hope this helps.
John

Edit: I have had to insert underscore characters to force an indent in the above example. In practice, you indent a child rule using the right arrow icon in Surveyor.
 
Last edited:
Having just been through a similar process, I'll chip in with my rather limited knowledge.

From what I can tell, the Play Sound rule requires the sound file to be part of an HTML asset. Such an asset can contain several sound files (such as a whole sequence of spoken instructions or dialog to be used throughout a session). The Play Sound rule should be edited to reference a particular HTML asset, and a specific sound file within that asset. An easy example would be to play the 'Default' sound in the GuardsWhistle HTML asset.

In order to have the sound play when you want it to, you'll need to make the PlaySound rule a 'child' rule of whatever needs to trigger it. That could be a trigger check rule, completion of some objective, a Wait... rule, to name but a few. E.g.

Wait (30s)
___PlaySound()

Hope this helps.
John

Edit: I have had to insert underscore characters to force an indent in the above example. In practice, you indent a child rule using the right arrow icon in Surveyor.


Thanks, I will give that a try.
 
Just to put a period on this thread, after much experimentation I have figured out this much: after inserting the "Play Sound" rule in after "Navigation Point Complete" clicking on the EDIT button opens the Properties-Play Sound menu. There I was able to select the sound of the HTML asset I selected. In order to get a sound from an HTML asset I found a website through which to download FREE sounds of interest. From the Properties-Play Sound menu I found a suitable HTML asset listed there: "313 html" which is some type of european train car. Then in Content Manager I opened this asset for Edit in Explorer and dropped in several sound files that I renamed for convenience. Close and Submit Edits and then I can select the sound I want in the Properties-Play Sound menu. Since there are several sound files in the "313 html" asset, it is easy to use different sounds for different events for which I want an audible announcement.

Hope this helps others to understand this interesting rule.
 
Back
Top