Skip to content

alexlaverty/python-reddit-youtube-bot-2.0

Repository files navigation

Reddit Video Generator

This repository is still a work in progress!

Overview

New repository I've created to rewrite the Python Reddit Youtube Bot but this time would like to make the code tidier, optimised and more performant. The old repo is messy and a bit out of control, was getting to hard to maintain.

The Reddit Video Generator is a Python script that creates videos from Reddit posts, including selftext and top comments. It utilizes text-to-speech technology to convert text content into audio, generating an engaging video for a given Reddit post.

Features

  • Creates videos from Reddit posts with selftext and top comments.
  • Utilizes text-to-speech for audio narration.
  • Allows customization of video settings and speech engine.

Installation

  1. Clone the repository:

    git clone git@github.com:alexlaverty/python-reddit-youtube-bot-2.0.git
  2. Install dependencies:

    pip install -r requirements.txt
  3. Set up Reddit API credentials:

    Create an auth.py file in the project root with the following content:

    REDDIT_AUTH = {
       'client_id': '',
       'client_secret': '',
       'user_agent': '',
       'username': '',
       'password': ''
    }

    Replace with your actual Reddit API credentials and Reddit username and password.

  4. Customize settings:

    Edit the settings.py file to customize video, comment, and other settings according to your preferences.

  5. Run the script:

    python main.py

Bark AI (Experimental)

Experimenting with Using Bark AI Speech Engine to generate Voice Over

pip install git+https://github.com/suno-ai/bark.git
pip install ipython

Note that using Bark requires a large download to generate the voices

No GPU being used. Careful, inference might be very slow!
text_2.pt:   2%|██▊ | 115M/5.35G [00:21<14:58, 5.83MB/s]

Generate and listen to Bark AI Voice examples :

https://replicate.com/suno-ai/bark?prediction=s7elcebb7eyi6trzce5l4nqebi

About

Rewritten, Simplified, Better Performance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages