Create a video from a Medium Post using Amazon Polly and Amazon Comprehend
Read more about this code in here and here
To run it
- Clone this repo:
git clone https://github.com/jonathanmv/faceless-influencer.git - Create the
audios, images, videosfolders at the same level as yourindex.jsfile. The script assumes they exist. - Install the dependencies:
npm install. The dependencies also include ffmpeg and a configured aws-cli. The first to create the videos and the second to load the configuration variables for your aws developer account. You can skip the aws-cli if you add your aws secret and key to the configuration in theawsHelper.jsfile. Just don't make them public. - Run it:
npm startBy default it will create a video from the latest post for the @jonathanmv user on Medium. You can create videos for different users by specified an environment variable like this:username=pepito postId=1vd44ea5 npm start. It will create a video from the post if found.
To run tests
Run npm test
To get access token
Run npm run token
To build docker and deploy image
Run npm run ecs-login
Run npm run docker-deploy