Skip to content

tylerweston/talc

Repository files navigation

this is the repository for the code behind the aleatoric learning channel.
It generates random semi-educational videos that are meant more as an exploration of chance and media in the age of information.
It begins by pulling a random wikipedia article, which is summarized using the online service SMMRY.
Using the keywords generated by SMMRY, it pulls random images from Google Images and videos from YouTube.
After running these through a glitchy gauntlet and combining with some spooky soundtrack, you have a brand new, somewhat cohesive video.

the aleatoric learning channel is on youtube! Check out the generated videos here.

To use:

You will need API keys for SMMRY (free) and OpenAI (if using). Include them in an .env file like
OPENAI_API_KEY = "your key"
SMMRY_API_KEY = "your key"
From there, start a virtual environment, pip install requirements, and run python main.py. OpenAI is optional, SMMRY is required.
An important note, due to bugs with some of the libraries that are being used that I had to fix manually, this program might not work as intended for you.
You'll need to either get newer versions of these libraries where the bugs are fixed, or fix them yourself.
Furthur, you will need to get the pretrained model for the semantic segmentation done by pixellib. Download the file from here and place it in the root folder.
Finally, you'll need to supply your own soundtracks. Place them in a '/soundtracks/' folder with the names 'talc_soundtrack1.mp3' to 'talc_soundtrack5.mp3'.

Contributions:

Please do! If you are in any way shape or form interested in helping out, feel free to reach out to me or open a PR.

Future Goals:

  • Use OpenAI to either smooth out the summarized text or add some commentary to it.
  • Find some sound effects to include, maybe downloaded from freesounds.org or something similar?
  • More glitching options
  • Better TTS (Or worse? Maybe glitchier as well?)
  • Maybe find a way to automatically upload to YouTube? I had this feature implemented but it appears currently videos uploaded using unverified third party APIs will be locked as private. Unless I can find a way around this, videos will still be uploaded manually.

About

The Aleatoric Learning Channel video generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages