convert audio or video to wav
npm i media2wav
const {
wav,
streamify,
bufferify,
streamTo,
} = require('.')
bufferify(
streamify('./media/test.mp4'),
wav(),
// first 30 seconds
// wav(['-t', '30']),
)
.then(console.log)
.catch(console.log)
// streamify('./media/test.mp4')
// .pipe(wav())
// .pipe(wav(['-t', '3']))
// .pipe(streamTo('./media/qqxy.wav'))
MIT