I\'m currently using child_process and command-line mplayer to play audio on the local machine, with my Node.JS application. This works, but it\'s not really an exc
mplayer
Introducing, audic. It doesn't use any native dependencies and it's isomorphic so it can't break like in the answers higher up.
Observe:
const Audic = require("audic") const audio = new Audic("audio.mp3") // Play Audio audio.play() // Pause Audio audio.pause()