Echode is a small library to play local audio files using NodeJS. It relies on FFplay, so make certain that FFmpeg is installed!
$ npm i install echode
or
$ yarn add echode
Make certain FFmpeg, specifically FFplay is available on your system. Otherwise this library will not work.
import { playAudio } from "echode";
await playAudio("sound.mp3");
That's it!