Skip to content

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

License

Notifications You must be signed in to change notification settings

jmholzer/daily-phrase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages