I would like to be able to automatically play an alert at a defined time within my survey. The problem is this - we have people going out into the field to perform bird surveys that are 20 minutes long. I have currently created a custom Javascript function that displays the time remaining in the survey and counts down, however I would also like an audio alarm to play once the time reaches 0. The people doing the survey cannot be watching the timer as they need to be looking for birds during the survey and so need the audio feedback. Is this possible?
I added something simple into the start of my JS function like this;
var alarmSound = new Audio('path/to/your/alarm-sound.mp3');
alarmSound.play();
And created a local MP3 for the purposes of testing but the 'Audio' function was not recognised in the Javascript function console in Survey123 connect. Any and all help would be greatly appreciated