jmholzer / daily-phrase

Automatically generates short-form video content that teaches viewers a new phrase each day

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Daily Phrase

Python version License Code Style: Black

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.

Environment variables

export ELEVEN_API_KEY=...

export UNSPLASH_API_KEY=...

Creating new phrases from JSON File

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

Upload

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.

About

Automatically generates short-form video content that teaches viewers a new phrase each day

License:MIT License


Languages

Language:Python 100.0%