sebheron / TikTok-Reddit-Text-To-Speech

Reddit TTS generator designed for TikTok
https://sebheron.github.io/tiktok-reddit-text-to-speech/
MIT License
26 stars 0 forks source link
ffmpeg ioc modular n-tier-architecture reddit text-to-speech tiktok

TikTok-Reddit-Text-To-Speech

HitCount Downloads Stars Issues Forks

Application and library for generating TikTok videos from Reddit posts and comments. The console application requires FFMPEG to run.

Features

Commands

Command Type Description Required
-url String Reddit URL Yes
-background String Background Video Path Yes
-output String Output Path No
-gender Male/Female Voice Gender No
-start Time Span Start Time (00:00:00) No
-comments Integer No. Comments No
-server String Server Location No
-key String Azure Subscription Key No

Examples

Basic usage

This example generates a post video with a single voice, using the built-in Windows TTS service.

ttsgen -url https://www.reddit.com/r/tifu/comments/v1qkbx/tifu_by_pointing_out_the_groundhog_that_lives_in/ -background input.mp4

https://user-images.githubusercontent.com/6990718/171319951-8a7e4287-5c42-41ac-bf62-de582b73e3f4.mp4

Complex usage

This example generates a comments video, using the Azure TTS service, with alternating voices.

Azure key information is saved for future usage, so it does not have to be specified each generation.

ttsgen -url https://www.reddit.com/r/AskReddit/comments/v1luy1/college_graduates_of_reddit_what_happened_to_that/ -background input.mp4 -start 00:00:30 -comments 4 -server westeurope -key YOUR_AZURE_SUBSCRIPTION_KEY -alternate true

https://user-images.githubusercontent.com/6990718/171317064-be5638ad-d265-4530-9e82-12498b8d20ae.mp4

Extending

The library itself is completely modular and by implementing the various interfaces at your disposal, the videos generated can be completely changed. Refer to the docs for more detail on how this is currently achieved.