Turn Reddit comments into rhyming poetry videos with AI.
This project fetches Reddit comments, uses Claude AI to compose them into rhyming poems, and generates videos with comment screenshots, text-to-speech audio, and background video/music.
- Install dependencies:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt- Download Kokoro TTS models (automatically done by
run.sh):
- kokoro-v1.0.onnx
- voices-v1.0.bin
- Check that background assets are in
assets/folder:
- Background video (webm format)
- Background music (mp3 format)
Run the complete pipeline:
./run.sh [comment_limit] [subreddits]Examples:
./run.sh- Default: 10000 comments from ArtificialInteligence./run.sh 5000- 5000 comments from ArtificialInteligence./run.sh 20000 "AmItheAsshole,ArtificialInteligence"- 20000 comments from both subreddits
- Fetch Reddit Comments - Collects poetic comments from specified subreddits
- Compose Poem - Claude AI arranges comments into rhyming poems
- Generate Screenshots - Creates Reddit-style comment images
- Generate Audio - Kokoro TTS converts comments to speech
- Create Video - Combines everything with background video and music
All output files are saved to the output/ directory:
reddit_poetic_comments.csv- Filtered commentsreddit_poem.csv- Final poem commentsreddit_comment_images_transparent/- Comment screenshotsaudio_files/- TTS audio filesreddit_poem_video.mp4- Final video
- Python 3.8+
- FFmpeg
- Claude CLI (
claudecommand) - Internet connection for Reddit API