An automated pipeline to generate faceless YouTube Shorts based on Google Trends. This system leverages AI-generated scripts, TTS voice, subtitle alignment, and FFmpeg video composition, all wrapped in a fully containerized architecture.
Maintaining and improving this open-source project takes significant time and effort.
If you find it useful, please consider supporting my work via GitHub Sponsors:
Your support helps keep this project alive and free for the community. Thank you! 🙌
- 🔥 Trending Topic Detection via Google Trends
- 🤖 Script Generation using Google Gemini API
- 🗣️ Voice Synthesis with Coqui TTS
- ⏱️ Forced Alignment of subtitles using Aeneas
- 🎬 Video Composition with FFmpeg
- 🖥️ One-Click Web Interface
-
Scrape Google Trends
Thetrendscraper
service uses Puppeteer to extract trending topics. -
Generate Script (Gemini)
It sends the trend to Gemini to generate a short, engaging script. -
Text-to-Speech (Coqui)
The script is converted to speech using Coqui TTS. -
Subtitle Alignment (Aeneas)
speechalign
aligns the generated audio with the script to produce timed subtitles. -
Video Assembly (FFmpeg)
The system merges:- A background video from
/videos
(nameddefault_*.mp4
) - The voiceover audio
- Subtitles
to create the final faceless short.
- A background video from
-
Web Trigger Interface
Access a minimal frontend on port80
to trigger everything with one click.
viral_faceless/
├── trendscraper/ # Scraper + Gemini + FFmpeg composition API
├── coqui/ # Coqui TTS container
├── speechalign/ # Forced alignment via Aeneas
├── nginx/ # Web interface + reverse proxy
├── /videos/ # Background video clips (e.g., gameplay, press machine)
├── docker-compose.yml
Note: Background clips must be placed in
/videos
and named likedefault_something.mp4
.
Rename the file example.env
in .env
and replace the placeholder Gemini API key with the one you generated from Google AI Studio, then start the pipeline with:
docker-compose up --build
Access the web interface at http://localhost to generate your first viral Short.
- Docker + Docker Compose
- Google Gemini API Key
- At least one video clip in
/videos/