I wrote myself a script to check a thing periodically. I'd like to make some sound notification for it.
I tried this
a = new Audio()
a.src = "file:///usr/share/sounds/LinuxMint/stereo/desktop-logout.ogg"
a.play()
but this fails silently.
How should I play a local file from pure JavaScript?