asmr: per-voice lead/tail around the script (whisper tags, spoken direction)
asmr / render (push) Failing after 1m32s
asmr / render (push) Failing after 1m32s
This commit is contained in:
1 parent
97e246507c
commit
6803dfb029
1 file changed
+2
-1
+2
-1
@@ -27,6 +27,7 @@ for v in cfg["voices"]:
|
||||
if os.path.exists(dst):
|
||||
continue
|
||||
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")
|
||||
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)
|
||||
Reference in new issue
Block a user