Hi there. I'm new to ARISjs. I'm looking for a way that I can play an audio file within a conversation. I uploaded an mp3 into media and called it "3_audio1". I've tried the following code but it hasn't worked. I think I might be missing a step in assigning the media with an ID.
<script type='text/javascript'>
var ARIS = {};
ARIS.ready = function()
{
//Advanced
ARIS.prepareMedia(3_audio1); //Loads audio media with specified id into memory
ARIS.playMedia(3_audio1); //Plays audio media with specified id
ARIS.stopMedia(3_audio1); //Stops playing audio media with specified id
ARIS.setMediaVolume(3_audio1, volume); //Sets volume for audio media with specified id
}
</script>