Automatically generates short-form video content that teaches viewers a new phrase each day. Selects phrases from a pre-defined database, associates them with a relevant image, and combines audio and visuals into a learning video. These videos are then uploaded to an Amazon S3 bucket, from which an AWS Lambda function uploads them to YouTube for distribution on a schedule.
See the Spanish-Daily-Phrase YouTube channel for an example.
export ELEVEN_API_KEY=...
export UNSPLASH_API_KEY=...
To create new phrase records in the db from a json file, whilst in the root of daily_phrase directory run:
python3 phrase.py --json cached_translations/<your_file>.json
Created video files are stored in an S3 bucket. This is currently not configurable. Auth is currently handled using a profile (named daily-phrase
) in the AWS shared credentials file.