NarReddit is a script that automates the process of converting top-rated Reddit posts into engaging, Subway Surfers-style TikTok narrations. It supports translation into multiple languages, enabling you to transform a single trending Reddit post into multilingual video content, all in an automated fashion!
-
Content Generation: NarReddit uses GPT-4 to enhance and translate Reddit posts, enabling the creation of multilingual content.
-
Reddit Scraping: The script scrapes your chosen subreddit to find the highest-rated post.
-
Intelligent Text-to-Speech (TTS) Audio Generation: NarReddit generates TTS audio from the post, intelligently determining the speaker's gender and adjusting the TTS voice accordingly.
-
Subtitles Creation: NarReddit can also create subtitles for the generated audio.
-
Video Overlays: The script overlays the generated audio and subtitles onto a selected background video, creating a complete, ready-to-upload video.
Setting up NarReddit locally can be a hassle. From the challenge of obtaining a GPT-4 access to dealing with configurations and dependencies, there's a lot to manage. If you want a smoother experience, why not try the web alternative? We are excited to introduce NarReddit Alpha – a web app that offers the same functionality without the setup complexities. It's currently in alpha, but give it a whirl and enjoy the convenience of online NarReddit!
Follow these steps to set up NarReddit:
-
Install ffmpeg and make it accessible via the $PATH environment variable. More information
-
Install the required dependencies by running
pip install -r requirements.txt
. -
Place your preferred video files to be used as backgrounds in the
background-videos
directory. -
Create a new Reddit application at this link. Choose 'script' from the radio button menu and set the redirect URI to
http://localhost:8080
. -
Set up the Gentle forced aligner and start the server.
-
Sign up for an Elevenlabs account if you don't have one already.
-
Obtain an OpenAI API key.
-
Create a
.env
file using the.env.template
provided in the repository. -
Populate the
.env
variables as per your requirements.-
Note: You can adjust the character limit for posts in the
.env
file. It's advisable to use a limit other than the defaults to avoid exhausting your Elevenlabs API character limit too quickly. -
Note: You'll need an API key with access to GPT-4 for this feature. Bear in mind that using GPT-4 may result in higher API costs.
-
-
Run the script to start creating engaging video content from top-rated Reddit posts!