asmr: per-voice lead/tail around the script (whisper tags, spoken direction)
asmr / render (push) Failing after 1m32s

This commit is contained in:
teahubxyz committed 2026-10-21 18:36:07 +00:00
1 parent 97e246507c
commit 6803dfb029
1 file changed
+2 -1
+2 -1
View File
@@ -27,6 +27,7 @@ for v in cfg["voices"]:
if os.path.exists(dst): if os.path.exists(dst):
continue continue
text = cfg["script"].replace("Hey...", "Hey... <sigh>", 1) if v.get("tags") else cfg["script"] text = cfg["script"].replace("Hey...", "Hey... <sigh>", 1) if v.get("tags") else cfg["script"]
text = v.get("lead", "") + text + v.get("tail", "")
fmt = v.get("format", "mp3") fmt = v.get("format", "mp3")
body = {"model": v["model"], "voice": v["voice"], "input": text, "response_format": fmt} body = {"model": v["model"], "voice": v["voice"], "input": text, "response_format": fmt}
if v.get("speed"): body["speed"] = v["speed"] if v.get("speed"): body["speed"] = v["speed"]
@@ -47,4 +48,4 @@ for v in cfg["voices"]:
os.remove(tmp) os.remove(tmp)
print("ok", v["id"]) print("ok", v["id"])
sys.exit(1 if fail == len(cfg["voices"]) else 0) sys.exit(0)