#!/usr/bin/env bash
# Voice-over script tests, 2026-11-19. Needs ffmpeg, python3, node + Playwright, and the 30 FLEURS en_us clips (c01..c30.wav, loudness-normalised)
# prepared as in ../get-zoom-meeting-transcript/ (prep.py, sample.tsv). Paths below are the ones used on the editor machine.
set -e
python3 pace.py > pace-log.txt          # 1. read-aloud pace, with a known-answer control (synthetic tone/silence file)
python3 mkclips.py                      # 2. per-clip seconds for the tool run
node vs-test.cjs > vs-log.txt           # 3. live /tools/video-script timer: 4 controls, then 4 scripts vs audio
python3 calc.py > calc-log.txt          # 4. words-per-length table, with a control
python3 make-figs.py && node render-figs.cjs "$PWD" pace-strip words-at-pace    # 5. figures
node shot.cjs                           # 6. screenshot of the tool on our own example script
