Skip to content

Instantly share code, notes, and snippets.

@marcelog
Created October 9, 2016 14:57
Show Gist options
  • Save marcelog/f688dede4cd9ea002c77923dd087819b to your computer and use it in GitHub Desktop.
Save marcelog/f688dede4cd9ea002c77923dd087819b to your computer and use it in GitHub Desktop.
Example invocation of SOX inside a Lambda container
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