amr-duration
Calculate amr duration,require node >= 6.0
Install
npm install amr-duration --save
Usage
const amrDuration = ; // callback ; // Promise ;
API
armDuration(amr, callback)
amr
Type: String|Buffer|Stream
Path of the file or amr content
callback(err, duration)
Type: function
Callback to be called once duration(ms) is calculated
return
Type: Promise
Always return a Promise when call armDuration