4.0.1 • Published 1 year ago
get-audio-duration v4.0.1
get-audio-duration
Get the duration of audio files with ffprobe
.
Supported platforms
Currently this package only supports Linux, Windows 7+, and MacOS 10.9+. This package does not work in the browser, iOS or Android.
Install
$ npm install --save get-audio-duration
Usage
const { getAudioDurationInSeconds } = require('get-audio-duration')
getAudioDurationInSeconds('audio.flac').then((duration) => {
console.log(duration)
})
// If you need to customize the path to ffprobe...
getAudioDurationInSeconds('audio.flac', '/path/to/ffprobe').then((duration) => {
console.log(duration)
})
4.0.1-beta.0
1 year ago
4.0.1
1 year ago
4.0.0
1 year ago
3.1.1
2 years ago
3.1.0
3 years ago
3.0.1
3 years ago
3.0.0
3 years ago
2.0.3
4 years ago
2.0.3-beta.0
4 years ago
2.0.2
4 years ago
2.0.2-beta.0
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.0.0
6 years ago
0.0.1
9 years ago