AI TikTok Video Generator/Editor/Uploader By Youssef Bechara 🤖🎬📤
Automated program for batch AI-generated TikTok content creation, editing, and uploading
Disclaimer:
This project was completed by me in Feb2024 but decided to not make it public for business reasons.
Example output
Watch the example.mp4 in the repository
Features ✨
- 🧠 AI-powered content generation (LLM models)
- 🎙️ Text-to-Speech synthesis
- 📝 Automated Reddit fact scraping
- ✂️ Intelligent video editing & composition
- ⚡ TikTok API integration for auto-uploading
- ☁️ Mega.nz cloud backup integration
Requirements 📋
- Python 3.9+
- FFmpeg
- Tesseract OCR
- Chrome/Firefox browser
- 4GB+ free disk space
API Configuration 🔑
Run setup.py to create credentials.json file that will automatically store all the credtials in one place and its reusable
TIKTOK_ACCESS_TOKEN="your_tiktok_token"
REDDIT_CLIENT_ID="your_reddit_client_id"
REDDIT_CLIENT_SECRET="your_reddit_secret"
OPENAI_API_KEY="sk-your-openai-key"
ELEVENLABS_API_KEY="your-elevenlabs-key"
MEGA_EMAIL="your@email.com"
MEGA_PASSWORD="your_mega_password"
API Setup Instructions:
Reddit API:
Register application at Reddit Apps Console
Select "script" type
OpenAI API for whisper:
Get API key from OpenAI Dashboard
Coqui TTS:
install coqui TTS module
Mega.nz:
Use existing account or create new free account
Asset Preparation 📦
Prepare a high quality background video that you will be showing (put it in assets folder)
Prepare a .wav clean longa udio of the voice you want to clone (optional theres another option than cloning)
Prepare background music (put it in assets folder)
Detailed Installation Guide
Install FFmpeg
1. Download FFmpeg from https://ffmpeg.org/download.html
2. Extract the archive
3. Add FFmpeg's bin folder to System Environment Variables PATH
4. Verify installation: ffmpeg -version
Linux/Ubuntu:
sudo apt update
sudo apt install ffmpeg
ffmpeg -version
Using Homebrew
brew install ffmpeg
ffmpeg -version
Project Setup
Clone the repository
git clone https://github.com/YoussefBechara/AI-Tiktok-VideoGenerator-Editor-Uploader-YSFB.git
cd AI-Tiktok-VideoGenerator-Editor-Uploader-YSFB