get-mp3-duration
Computes the duration of an mp3 buffer in node or browser.
Install
npm install --save get-mp3-duration# or yarn add get-mp3-duration
Usage
const getMP3Duration = const buffer = fsconst duration = console 285727 ms
Related
- mp3-duration this package is a fork of mp3-duration to add browser support.
- vmsg is an optimized mp3 recorder for the web which ports the lame mp3 encoder to wasm.
License
MIT © Travis Fischer