echode

Echode is a small library to play local audio files using NodeJS. It relies on FFplay, so make certain that FFmpeg is installed!

Usage no npm install needed!

<script type="module">
  import echode from 'https://cdn.skypack.dev/echode';
</script>

README

Echode is a small library to play local audio files using NodeJS. It relies on FFplay, so make certain that FFmpeg is installed!

Installation

$ npm i install echode

or

$ yarn add echode

Important

Make certain FFmpeg, specifically FFplay is available on your system. Otherwise this library will not work.

Usage


import { playAudio } from "echode";

await playAudio("sound.mp3");

That's it!