Recibo un error llamado Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. ¿Alguien sabe cómo arreglar esto?
const audioCls = new Audio("/assets/audio/a4.mp3"); setInterval(() => { audioCls.play(); }, 1000);Al hacer clic en el documento se solucionó el problema :)