Generate and upload Area6 / qualitylife.lk branded YouTube Shorts with AI backgrounds and TTS narration. Supports Sinhala (Piper TTS) and English (Pocket TTS/Piper). Uses Imagen 4 for category-specific backgrounds, Gemini 2.5 Flash for tip scripts, and auto-uploads to YouTube @Area6_Content. Use when asked to generate health tip videos, create shorts, run the pipeline, upload to youtube, make videos for area6, generate new tips, or create a new batch.
Generate and upload branded 9:16 vertical YouTube Shorts for Area6 / qualitylife.lk.
/home/chanclaw/.openclaw/workspace/area6-health-tips@Area6_Content (channel UCRocfsBHK3AlK3TlUUX-HiQ)/home/chanclaw/.openclaw/credentials/google-client.json + google-token.jsoncd /home/chanclaw/.openclaw/workspace/area6-health-tips
# 1. Generate tips (Gemini)
python3 scripts/generate_batch.py --categories "hydration,sleep" --count 5
# 2. Upload to YouTube
node scripts/youtube-upload.js --all
python3 scripts/generate_batch.py --categories "hydration,sleep" --count 5 --tips-only
See references/gemini-prompt.md for the prompt template.
python3 scripts/generate_backgrounds.py # all 10 categories
python3 scripts/generate_backgrounds.py exercise sleep # specific
python3 scripts/generate_backgrounds.py --force # regenerate
Saves to branding/backgrounds/{category}.png. Categories: breathing, exercise, sleep, nutrition, hydration, mental, posture, habits, recovery, gut-health.
python3 generate_all.py # all tips
python3 shorts_gen.py --tip content/tips/sleep-rest.json --output output/test.mp4 # single
Auto-selects category background → falls back to branding/background.png.
node scripts/youtube-upload.js --all # private, skip already uploaded
node scripts/youtube-upload.js --all --public # public
node scripts/youtube-upload.js --all --dry-run # preview
Tracks in scripts/upload-log.json. Stops on rate limit. Cron: daily 4AM SL (job dee7a47f).
node /home/chanclaw/.openclaw/workspace/scripts/youtube-auth.js
Sign in with Area6_Content Google account.
{
"id": "category-keyword",
"title": "Short title (5-8 words)",
"highlight": "ONE word to show in orange",
"category": "hydration|sleep|exercise|nutrition|mental|posture|habits|recovery|breathing|gut-health",
"tip": "Narration text, 24-28 words",
"hashtags": ["#qualitylife", "#healthtips", "#area6fitness"]
}
piper/si_LK-sinhala-medium.onnx (custom trained, 1000 epochs)piper/en_US-lessac-medium.onnx or Pocket TTS (pocket-tts generate --voice marius)huggingface.co/kyutai/pocket-tts/home/chanclaw/shared-academy/month-*-videos/*-chandima-voice.mp4piper-tts Pillow numpy google-genai pocket-ttsgoogleapisNotoSans-Bold.ttf, NotoSansSinhala-Regular.ttf in ~/.local/share/fonts/GEMINI_API_KEY in .env