I want to play a sound on my website, but it doesn't work. I've already tried everything:
<audio id="ringtone" src="Sound2.mp3"></audio>
RingSound = document.getElementById("ringtone");
RingSound.play();
I also tried another method:
var Sound = new Audio('Sound2.mp3')
Sound.play();
Everything didn't work out, but the sound of the computer works. I've tried almost everything, moved the file, done audio test. I hope someone can help me