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)