From da3d442656763f48efe7777693d86c61f7d85eb1 Mon Sep 17 00:00:00 2001 From: mARTin-B78 Date: Wed, 12 Aug 2026 11:15:35 +0200 Subject: [PATCH] Add one-command runner for the book01 manual-vs-automated cast comparison Co-Authored-By: Claude Opus 5 --- scripts/run_book01_test.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/run_book01_test.sh diff --git a/scripts/run_book01_test.sh b/scripts/run_book01_test.sh new file mode 100755 index 0000000..e29f252 --- /dev/null +++ b/scripts/run_book01_test.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# Fetches the current book01 cast and compares it against the manual baseline. +# Run this once the re-cast has finished (Studio shows the cast complete). +set -e +CD=/home/sparky/Docker/tts-voice-creator-clone-and-design-2 +B1=ffa33211681d46f1827663bb0aa76390 +curl -s "http://localhost:7890/api/reader/docs/$B1/scripts/cast" -o /tmp/book01_AFTER.json +python3 "$CD/scripts/compare_casts.py" /tmp/book01_BEFORE.json /tmp/book01_AFTER.json