I'm trying to add a delay to the second sound, so it only plays after the first sound is finished playing. How can I do that? I've tried setTimeout, but it doesn't work.
var notify = new Audio('resources/vox/notify.mp3');
var hello = new Audio('resources/vox/hello.mp3');
var commands = {
'hi': function () {
notify.load();
notify.play();
hello.load();
setTimeout(hello.play(), 3000);
$('#hello_r').show("slow");
}
};