media2wav

1.2.4 • Public • Published

media2wav

convert audio or video to wav

Getting Started

npm i media2wav

Usage

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'))

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i media2wav

Weekly Downloads

1

Version

1.2.4

License

ISC

Unpacked Size

3.69 kB

Total Files

4

Last publish

Collaborators

  • ailnaf