Application and library for generating TikTok videos from Reddit posts and comments. The console application requires FFMPEG to run.
- Loads reddit information directly from URL.
- Synthesises speech (using Azure or built-in Windows voices)
- Builds images to represent parts of Reddit posts/comments.
- Compiles a video using FFMPEG (and possibly other methods further down the line).
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 |
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
Example.1.mp4
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
Example.2.mp4
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.