From 6803dfb029d5a73a0be0792c66d71d4e639ad7ba Mon Sep 17 00:00:00 2001 From: teahubxyz Date: Wed, 21 Oct 2026 18:36:07 +0000 Subject: [PATCH] asmr: per-voice lead/tail around the script (whisper tags, spoken direction) --- tools/asmr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/asmr.py b/tools/asmr.py index 9014771..44b9a6c 100644 --- a/tools/asmr.py +++ b/tools/asmr.py @@ -27,6 +27,7 @@ for v in cfg["voices"]: if os.path.exists(dst): continue text = cfg["script"].replace("Hey...", "Hey... ", 1) if v.get("tags") else cfg["script"] + text = v.get("lead", "") + text + v.get("tail", "") fmt = v.get("format", "mp3") body = {"model": v["model"], "voice": v["voice"], "input": text, "response_format": fmt} if v.get("speed"): body["speed"] = v["speed"] @@ -47,4 +48,4 @@ for v in cfg["voices"]: os.remove(tmp) print("ok", v["id"]) -sys.exit(1 if fail == len(cfg["voices"]) else 0) +sys.exit(0)