In my HTML I have the following (in addition to the "display: none" in the css):
<audio class="audio">
<source src="~/Audios/NUMEROS/ONE.ogg" type="audio/ogg">
</audio>
And to execute said Audio, I put the following code in my javascript file:
$(document).ready(function () {
$(".audio").play();
});
But when I open the page, in console I get the following error:
Uncaught TypeError: audio.play is not a function