ArtskydJ / node-sox-stream

:mega: A stream-friendly wrapper around SoX
53 stars 14 forks source link

Change interface to be an object of options #3

Closed ArtskydJ closed 7 years ago

ArtskydJ commented 9 years ago
var sox = require('sox-stream')

var transform = sox({
    input: {},
    output: {},
    effects: {}, // this functionality should be added
    soxPath: 'sox'
})

fs.createReadStream('a.ogg')
    .pipe(transform)
    .pipe(fs.createWriteStream('b.ogg'))

Thanks to @mbykov for notifying me of this issue!

Related ArtskydJ/sox.js#2