This Script creates a youtube-ready youtube video from a reddit thread link.
This script uses external (non-foss) programs, which are:
1. voice.exe https://www.elifulkerson.com/projects/commandline-text-to-speech.php (No need to download)
2. sox http://sox.sourceforge.net/
3. imagemagick https://www.imagemagick.org/
4. ffmpeg https://www.ffmpeg.org/
5. Daniel Voice Microsoft (no official site found maybe https://www.microsoft.com, mirror: https://drive.google.com/file/d/15j8nEpu3D4ezbTy2Hz_Tr7PjOYKPPKFM/view?usp=sharing)
6. Selenium Chrome Driver (I use version 73; default location is in the configuration.json) https://sites.google.com/a/chromium.org/chromedriver/downloads
- Open the folder you just downloaded. (You can simply clone)
1.5 Download the dependencies listed above. Put them anywhere, i prefer the ./assets/bin folder. (voice.exe is already there) Link "magick.exe", "sox.exe" and "ffmpeg.exe" in the configuration.json. Install the Daniel Voice Microsoft anywhere.
- Modify the configuration.json in the main folder.
"thread": "<put your thread here (it must end with a /)>"
2.5 For now music is provided. It changes, when I code custom music in.
- Run the script
py script.py
-
Videos will be output to the /output/ folder on root
-
Success
POC (Proof of Concept): https://www.youtube.com/channel/UCe0uBVWBpb74hBZRnQZOAjw (RedditReader on YouTube)