So im building something but im not allowed to use any external files other than the script.js file itself. I want to play a .mp3 sound in a function but im not sure how to do it without uploading the file into my folder.
There’s an example here. https://iandevlin.com/html5/data-uri/audio.php
var audioElement = new Audio(); audioElement.src = "data:audio/ogg;base64,T2dnUwACAAAAAAAAAAA+..."; audioElement.play();