Giter Site home page Giter Site logo

wongcorp / auddit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adam-jimenez/auddit

0.0 1.0 0.0 18.38 MB

Tired of those Reddit text-to-speech videos on Youtube? Now you can make your own!

Home Page: https://www.youtube.com/channel/UCMi63vc1Timv8dfrmcrrdFQ

License: MIT License

Python 100.00%

auddit's Introduction

Auddit

Tired of those Reddit text-to-speech videos on Youtube? Now you can make your own, automatically!

Official Auddit Youtube Channel: https://www.youtube.com/channel/UCMi63vc1Timv8dfrmcrrdFQ

thumbnail

Dependencies

Setup

sudo pip install -r requirements.txt

Then add the following environnement variables:

  • REDDIT_CLIENT_ID
  • REDDIT_CLIENT_SECRET

Read about how to create a Reddit application to get those.

You also need to register an application on the Google OAuthv2 API. Here's a guide. You need to put the resulting client_secrets.json in the root of the project.

Running

python src/main.py

Testing

All tests:

python -m unittest

Single test:

python -m unittest test/test_reddit.py

How it works

Using the Python Reddit API Wrapper, we can query for hot posts from any subreddit.

Then we pipe the text to the text-to-speech task, that generates an audio file using either ttsmp3.com or the Google TTS Python Wrapper. We prefer ttsmp3.com for the quality of the voices and use gTTS as a fallback if we get rate-limited.

Then, we send the text and the audio to the video generation tasks, which uses PyMovie to make a video with background music, the text-to-speech clips and the text.

Then we generate a thumbnail with the goal of clickbaiting the viewers with Pillow.

All that is left is to upload to Youtube using the Google API.

Why

because i can

auddit's People

Contributors

adam-jimenez avatar

Watchers

James Cloos 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.