Inspiration

We are avid consumers of TikTok, who enjoy the TTS videos such as the Biden, Obama, and Trump videos, and the Reddit story videos. Therefore, we decided to make shortsGenerator so that at any time we can have stimulating short-form content at the tip of our fingers.

What it does

Our program will give the user the ability to generate short-form content via Reddit post scraping or user-prompted chatGPT-generated content. The content will be read out loud via a TTS model and then paired with a user-prompted background video scraped from youtube. The final video boasts a caption feature that is synced with the TTS and is saved locally as an MP4 file.

How we built it

We built the program entirely in Python. The video scraper uses PyTube to scrape a video that matches the type of video the user provides. The Reddit scraper uses Praw. To generate the TTS we use Google TTS. To add the captions and TTS to the video we use MoviePy.

Challenges we ran into

We ran into issues formatting the text when placed onto the images. We hoped to fix an issue before submission where the Reddit scraper failed to parse ".." or "..." which resulted in gTTS failing to convert to speech, but we did not have time. We also ran into some issues with Git, but overall things went well. Our team wanted to have the program automatically upload the generated video to YouTube, but YouTube had to review our project and we didn't have the time.

Accomplishments that we're proud of

We are proud of our ability to work separately on different parts and then work together to integrate them at the end. Colin is specifically proud of the documentation and GitHub repo.

What we learned

We learned how to collaborate over Github as we had to deal with a bunch of merge issues. We gained knowledge and experience in working with multimedia files, and utilizing TTS to convert generated text into speech. One of the most valuable lessons we learned during the hackathon was the importance of distributing work and effectively working as a team. Dividing tasks among ourselves allowed us to tackle different aspects of the project simultaneously, maximizing our productivity and efficiency.

What's next for Shorts Generator

  • Work towards integration with uploading to multiple media platforms - Youtube, TikTok, Instagram
  • Provide more customizability for video options
  • Improve the TTS engine to be more realistic

Built With

+ 2 more
Share this project:

Updates