Created
October 9, 2016 14:57
-
-
Save marcelog/f688dede4cd9ea002c77923dd087819b to your computer and use it in GitHub Desktop.
Example invocation of SOX inside a Lambda container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.handler = function(event, context, callback) { | |
var exec = require('child_process').execFileSync; | |
var ret = exec(__dirname + '/sox', ['file1', 'file2'], {encoding: 'ascii'}); | |
console.log('Result: ' + ret); | |
callback(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment