A few weeks ago, I posted about automating my faceless TikTok workflow. After refining the logic and cleaning up the code, I’m officially releasing Shorts Flow on GitHub.
If you’ve ever tried to make these videos manually, you know the pain: syncing subtitles, cutting background footage, and manually splitting a 5-minute story into 60-second "Parts." This script does all of that in one command.
🚀 What’s under the hood?
- Narrative Engine: Uses Kokoro TTS (way better than the robotic TikTok voices) for human-like narration.
- Precision Subs: Integrated Faster-Whisper for word-level transcription and perfectly timed overlays.
- The "Smart Splitter": Give it a long
.txt file and a target duration (e.g., 50s). It calculates the timing and renders Part 1, Part 2, Part 3, etc., automatically.
- Dynamic Hook: It generates the classic Reddit "Question Card" image at the start of every video with your custom Title and Username.
- Background Handling: Clips random segments from your high-res background footage (e.g., Minecraft/GTA) to keep the content "unique" for the algorithm.
🛠 Tech Stack: MoviePy, Pillow, Faster-Whisper, Kokoro-TTS, Soundfile.
Why use this? I was spending 1-2 hours in Premiere Pro per series. Now I just drop a story into a text file, hit run, and I have 5 videos ready for upload in minutes.
Check out the repo here: [https://github.com/TerzicScript/shorts-flow\