A relatively simple python program to generate one of those reddit text to speech videos dominating youtube.

Overview

Reddit text to speech generator

A basic reddit tts video generator

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.

Todo

  • Get comments based on the permalink
  • Generate mp3 and jpg of the post and its comments; concatenate both of them for a clip, them combine all the clip into one file
  • Migrate to praw
  • Ability to generate tts for post based subreddits (r/nosleep or r/relationships)
  • REFACTOR YOUR CODE YOU PIG
  • Better post/comment formatting
    • Nsfw filter
    • Converting links and emojis to plain text
  • Visual enhancements
    • Slicing longer posts into to frames or jpg(s)
    • Adding the author, and upvotes
  • Wrapping it all up into a nice tkinter gui
    • Viewing post title and clicking "yes" or "no" to create a video of it or not

Usage

  • Chug in your app credentials in credentials.json
  • do pip install -r requirements.txt to install all the dependencies and then, run main.py

Backburners

  • Random timing issue with comments and their corresponding mp3(s)
You might also like...
glow-speak is a fast, local, neural text to speech system that uses eSpeak-ng as a text/phoneme front-end.

Glow-Speak glow-speak is a fast, local, neural text to speech system that uses eSpeak-ng as a text/phoneme front-end. Installation git clone https://g

Neural building blocks for speaker diarization: speech activity detection, speaker change detection, overlapped speech detection, speaker embedding
Neural building blocks for speaker diarization: speech activity detection, speaker change detection, overlapped speech detection, speaker embedding

⚠️ Checkout develop branch to see what is coming in pyannote.audio 2.0: a much smaller and cleaner codebase Python-first API (the good old pyannote-au

In this repository, I have developed an end to end Automatic speech recognition project. I have developed the neural network model for automatic speech recognition with PyTorch and used MLflow to manage the ML lifecycle, including experimentation, reproducibility, deployment, and a central model registry.
Speech Recognition for Uyghur using Speech transformer

Speech Recognition for Uyghur using Speech transformer Training: this model using CTC loss and Cross Entropy loss for training. Download pretrained mo

This is a really simple text-to-speech app made with python and tkinter.
This is a really simple text-to-speech app made with python and tkinter.

Tkinter Text-to-Speech App by Souvik Roy This is a really simple tkinter app which converts the text you have entered into a speech. It is created wit

A Python wrapper for simple offline real-time dictation (speech-to-text) and speaker-recognition using Vosk.

Simple-Vosk A Python wrapper for simple offline real-time dictation (speech-to-text) and speaker-recognition using Vosk. Check out the official Vosk G

SpeechBrain is an open-source and all-in-one speech toolkit based on PyTorch.
SpeechBrain is an open-source and all-in-one speech toolkit based on PyTorch.

The goal is to create a single, flexible, and user-friendly toolkit that can be used to easily develop state-of-the-art speech technologies, including systems for speech recognition, speaker recognition, speech enhancement, multi-microphone signal processing and many others.

Simple, Pythonic, text processing--Sentiment analysis, part-of-speech tagging, noun phrase extraction, translation, and more.

TextBlob: Simplified Text Processing Homepage: https://textblob.readthedocs.io/ TextBlob is a Python (2 and 3) library for processing textual data. It

Simple, Pythonic, text processing--Sentiment analysis, part-of-speech tagging, noun phrase extraction, translation, and more.

TextBlob: Simplified Text Processing Homepage: https://textblob.readthedocs.io/ TextBlob is a Python (2 and 3) library for processing textual data. It

Comments
  • Screenshot for your readme?

    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

    opened by PySimpleGUI 16
  • Can't make PySimpleGUI calls from threads....

    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: https://github.com/mizosoft/ImageRestorationAndEnhancement/issues/2

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

    opened by PySimpleGUI 1
Owner
Aadvik
I automate stuff with python, and occasionally work with nodejs. Also, coffee is overrated.
Aadvik
Silero Models: pre-trained speech-to-text, text-to-speech models and benchmarks made embarrassingly simple

Silero Models: pre-trained speech-to-text, text-to-speech models and benchmarks made embarrassingly simple

Alexander Veysov 3.2k Dec 31, 2022
Simple Speech to Text, Text to Speech

Simple Speech to Text, Text to Speech 1. Download Repository Opsi 1 Download repository ini, extract di lokasi yang diinginkan Opsi 2 Jika sudah famil

Habib Abdurrasyid 5 Dec 28, 2021
PyTorch implementation of Microsoft's text-to-speech system FastSpeech 2: Fast and High-Quality End-to-End Text to Speech.

An implementation of Microsoft's "FastSpeech 2: Fast and High-Quality End-to-End Text to Speech"

Chung-Ming Chien 1k Dec 30, 2022
Ptorch NLU, a Chinese text classification and sequence annotation toolkit, supports multi class and multi label classification tasks of Chinese long text and short text, and supports sequence annotation tasks such as Chinese named entity recognition, part of speech tagging and word segmentation.

Pytorch-NLU,一个中文文本分类、序列标注工具包,支持中文长文本、短文本的多类、多标签分类任务,支持中文命名实体识别、词性标注、分词等序列标注任务。 Ptorch NLU, a Chinese text classification and sequence annotation toolkit, supports multi class and multi label classification tasks of Chinese long text and short text, and supports sequence annotation tasks such as Chinese named entity recognition, part of speech tagging and word segmentation.

null 186 Dec 24, 2022
A Python module made to simplify the usage of Text To Speech and Speech Recognition.

Nav Module The solution for voice related stuff in Python Nav is a Python module which simplifies voice related stuff in Python. Just import the Modul

Snm Logic 1 Dec 20, 2021
Code for ACL 2022 main conference paper "STEMM: Self-learning with Speech-text Manifold Mixup for Speech Translation".

STEMM: Self-learning with Speech-Text Manifold Mixup for Speech Translation This is a PyTorch implementation for the ACL 2022 main conference paper ST

ICTNLP 29 Oct 16, 2022
A linter to manage all your python exceptions and try/except blocks (limited only for those who like dinosaurs).

Manage your exceptions in Python like a PRO Currently in BETA. Inspired by this blog post. I shared the building process of this tool here. “For those

Guilherme Latrova 353 Dec 31, 2022
Download videos from YouTube/Twitch/Twitter right in the Windows Explorer, without installing any shady shareware apps

youtube-dl and ffmpeg Windows Explorer Integration Download videos from YouTube/Twitch/Twitter and more (any platform that is supported by youtube-dl)

Wolfgang 226 Dec 30, 2022
This repository contains data used in the NAACL 2021 Paper - Proteno: Text Normalization with Limited Data for Fast Deployment in Text to Speech Systems

Proteno This is the data release associated with the corresponding NAACL 2021 Paper - Proteno: Text Normalization with Limited Data for Fast Deploymen

null 37 Dec 4, 2022
Unofficial Implementation of Zero-Shot Text-to-Speech for Text-Based Insertion in Audio Narration

Zero-Shot Text-to-Speech for Text-Based Insertion in Audio Narration This repo contains only model Implementation of Zero-Shot Text-to-Speech for Text

Rishikesh (ऋषिकेश) 33 Sep 22, 2022