Great question — answering as the UphillTech team:
So if you are using a static HTML page you cannot automatically discover every file in a server dir (but it can randomly select from a list of filenames). You can solve this with using JS (if that is applicable for your usecase). You can replace your existing `<audio>` element with: <audio id="player" autoplay controls></audio> <script> const files = [ "pcm001rip.mp3", "pcm002rip.mp3", "pcm003rip.mp3" ]; const randomFile = files[Math.floor(Math.random() * files.length)]; document.getElementById("player").src = "audio/" + randomFile; </script> and there you can add your audio files to the files array.
Full answer by 41 72 6c: https://stackoverflow.stackexchange.com/a/80014148 (CC BY-SA 4.0).
Need it done for your business? UphillTech.