Turn audio into a shareable video. forked from nypublicradio/audiogram

index.js 330B

1234567891011121314
  1. module.exports = function(settings) {
  2. var s3 = settings.s3Bucket ? require("./remote")(settings.s3Bucket, settings.storagePath) : require("./fake")(settings.storagePath);
  3. return {
  4. uploadAudio: s3.upload,
  5. uploadVideo: s3.upload,
  6. downloadAudio: s3.download,
  7. getURL: s3.getURL,
  8. cleanFiles: s3.clean
  9. };
  10. }