asmr: optional per-voice label

This commit is contained in:
teahubxyz committed 2026-10-21 19:10:18 +00:00
1 parent d8784c0318
commit 9376bd8c70
1 file changed
+1 -1
+1 -1
View File
@@ -125,7 +125,7 @@ fetch("voices.json").then((r) => r.json()).then((cfg) => {
}
const el = document.createElement("div"); el.className = "v";
el.innerHTML = `<div class="ic">▶</div><div class="n"><span></span><i></i><div class="bar"><span></span></div></div><div class="stars"></div>`;
el.querySelector(".n > span").textContent = v.voice;
el.querySelector(".n > span").textContent = v.label || v.voice;
const rate = (cfg.pricing || {})[v.model];
const text = (v.lead || "") + (v.tags ? cfg.script.replace("Hey...", "Hey... <sigh>") : cfg.script) + (v.tail || "");
const clip = rate ? rate * text.length / 1e6 : null;