Giter Club home page Giter Club logo

careerchangor / narreddit-script Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sophiaperzan/narreddit-script

0.0 0.0 0.0 22.16 MB

Automate the creation of engaging, multilingual TikTok narrations from top-rated Reddit posts with NarReddit. Converts Reddit posts to Text-to-Speech audio, overlays onto chosen background videos, and supports translations.

Home Page: http://narreddit.com

License: GNU Affero General Public License v3.0

Python 100.00%

narreddit-script's Introduction

NarReddit

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!

Features

  • 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.

Web Alternative: NarReddit Alpha

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!

Setup

Follow these steps to set up NarReddit:

  1. Install ffmpeg and make it accessible via the $PATH environment variable. More information

  2. Install the required dependencies by running pip install -r requirements.txt.

  3. Place your preferred video files to be used as backgrounds in the background-videos directory.

  4. Create a new Reddit application at this link. Choose 'script' from the radio button menu and set the redirect URI to http://localhost:8080.

  5. Set up the Gentle forced aligner and start the server.

  6. Sign up for an Elevenlabs account if you don't have one already.

  7. Obtain an OpenAI API key.

  8. Create a .env file using the .env.template provided in the repository.

  9. 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.

  10. Run the script to start creating engaging video content from top-rated Reddit posts!

narreddit-script's People

Contributors

sophiaperzan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.