Auto YouTube Shorts Maker - how to run
======================================
Python 3.10 or newer (tested with 3.13). Run every command from this folder.
You need an internet connection for the voice (edge-tts).

Windows (PowerShell or Command Prompt)
  python -m venv .venv
  .venv\Scripts\activate
  pip install -r requirements.txt
  mkdir out
  python voice.py
  python background.py
  python captions.py
  python cards.py
  python make_short.py script.txt
  python make_short.py scripts\made_by_python.txt --out out\made_by_python.mp4
  python batch.py

  If PowerShell refuses to run activate, run this once and try again:
  Set-ExecutionPolicy -Scope CurrentUser RemoteSigned

macOS / Linux
  python3 -m venv .venv
  source .venv/bin/activate
  pip install -r requirements.txt
  mkdir -p out
  python voice.py
  python background.py
  python captions.py
  python cards.py
  python make_short.py script.txt
  python make_short.py scripts/made_by_python.txt --out out/made_by_python.mp4
  python batch.py

Results
  out/test.mp3          voice test (voice.py)
  out/background.png    one background frame
  out/caption.png       one caption image
  out/end_card.png      one frame of the subscribe card
  out/short.mp4         the finished Short (+ out/short.mp3, the voice)

Change the voice
  edge-tts --list-voices
  python make_short.py script.txt --voice en-GB-RyanNeural

Common errors
  OSError: cannot open resource      -> run from this folder (fonts/ must be next to the scripts)
  NoAudioReceived                    -> usually a network hiccup; voice.py already retries once, run it again
  ValueError: Invalid voice          -> copy the exact name from edge-tts --list-voices
  No module named moviepy.editor     -> that is MoviePy 1 code; this project uses MoviePy 2
