Giter Site home page Giter Site logo

aadv1k / reddit-tts-gui Goto Github PK

View Code? Open in Web Editor NEW
24.0 3.0 3.0 8.58 MB

A GUI to auto-generate TTS videos from reddit posts and comments

License: GNU General Public License v3.0

Python 100.00%
reddit python pysimplegui tts-engines tts automation

reddit-tts-gui's Introduction

Reddit text to speech generator

This development for this project has ended, I don't plan on fixing or further supporting this

A python gui program to generate reddit text to speech videos from posts or comments.

Current functionality

  • Generate videos for subs based on comments,(askreddit) so reading individual comments.
  • Generate videos for subs with longer posts,(entitledparents), so slicing the post into multiple frames to fit the text.
  • Easy login, all you need to do, is run main.py, you will get a link; go to the link and click allow; Thats it! the credentials are written to a json file so you dont need to repeat this step as long as the token.json file is there.
  • Ability to cherry pick individual posts for which the video has to be made, within the GUI (refer to screenshots)

Usage

  • do pip install -r requirements.txt to install all the dependencies and then, run python main.py
  • It will prompt you to open a url, open it, then allow "post_scraper" to access your account, then you will be redirected to a browser tab, you can then close it.

Screenshots

Backburners

  • Converting links and emojis to plain text

reddit-tts-gui's People

Contributors

aadv1k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

reddit-tts-gui's Issues

Screenshot for your readme?

Hi!

I see in your readme that you've got a GUI and indeed, the code shows you've got one... but, there's no image in your readme. I'm SURE visitors would enjoy seeing what you made.

If you've not put an image into a readme before, it's super simple. It's as easy as embedding an image in this GitHub Issue...

This is a simple one I made a couple of years ago. Nothing fancy that's for sure....

image

https://github.com/PySimpleGUI/PySimpleGUI-Reddit-Searcher

I put my screenshots that I used in my readme for that project into an Issue and then pasted the links into my readme

https://github.com/PySimpleGUI/PySimpleGUI-Reddit-Searcher/issues/1

The window above was made by pasting into this comment. It made this line of text:

![image](https://user-images.githubusercontent.com/46163555/142887950-bf23dbca-ffee-4401-a90a-3f9816d18ab0.png)
You can do the same with your program... paste a screenshot and then paste the link into your readme. Simple.... I ๐Ÿ’— simple

image

Can't make PySimpleGUI calls from threads....

It appears you're making PySimpleGUI calls from a thread. You may even be "getting away with it". If tktiner catches you, your program will crash. PySimpleGUI wasn't written to be threadsafe either.

There is an easy way out however. window.write_event_value() is callable from a thread. With this call you can pass data through to your event loop and then have your event loop perform the operation. I recommend using tuples for this. If you use a tuple with your events, then you can have the first item in your tuple be an indicator that the event is from your thread, then have the next item indicate the operation.

Maybe an event like this if you want to print something to the element with the key '-ML-':
('-THREAD-', 'print', '-ML-')

window.write_event_value(('-THREAD-', 'print', '-ML-'), "this is what I want to print")

In your event loop you can then have

if event[0] == '-THREAD-':
    # all of your thread based event processing...
    if event[1] == 'print':
        window[event[2]].print(values[event])

I did something like this when I added threading to an image restoration project I stumbled onto:
mizosoft/ImageRestorationAndEnhancement#2

Lots of different ways to do it. You'll find examples in the Demo Programs as well that use write_event_value
image

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.