A Python script that automatically generates a short narrated video from a simple text.
-
Python 3.8+
-
Required Python packages:
pip install google-generativeai requests gtts moviepy pillow
- Replace these values in the script:
GEMINI_API_KEY = "ENTER_YOUR_GEMINI_API_KEY"
CLOUDFLARE_ACCOUNT_ID = "ENTER_YOUR_CLOUDFLARE_ACCOUNT_ID"
CLOUDFLARE_API_TOKEN = "ENTER_YOUR_CLOUDFLARE_API_TOKEN"- Run the script:
python app.py