var sound = new Audio();
function sound(){
sound.pause();
sound.currentTime = 0;
sound.src = "sound.mp3";
sound.play();
}
sound();
new Audio("sound.mp3").play();
var audioElement = new Audio("sound2.wav");
audioElement.play();
var timeActivation = setTimeout(() => new Audio("sound.mp3").play(), 12000);
audio.play().then(() => audio.pause())
для активации