Skip to content

Instantly share code, notes, and snippets.

@jonathanmv
Created March 8, 2018 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanmv/b6c5f269508e0bf15f4b0544fc37ccd7 to your computer and use it in GitHub Desktop.
Save jonathanmv/b6c5f269508e0bf15f4b0544fc37ccd7 to your computer and use it in GitHub Desktop.
Generate a video from a medium post
const makeVideo = async (username, postId) => {
const analysis = await mediumHelper.getUserPostAnalysis(username, postId)
const speechPath = await awsHelper.saveSpeechLocally(analysis)
const screenshotPath = await mediumHelper.saveUserPostScreenshotLocally(username, postId)
return mediaHelper.createVideo(screenshotPath, speechPath)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment