Setup shots: quote the real TTS cost, not "about a cent"
A measured run of the 80s NIMBY script came back at $0.1589 for 946 characters - the ElevenLabs rate of $22 per 131,000 - so the copy understated it by more than tenfold. Compute it from the words actually in the box instead.
This commit is contained in:
parent
30fde992dc
commit
076621f809
1 changed files with 6 additions and 1 deletions
|
|
@ -281,7 +281,12 @@ function render(r) {
|
||||||
'<h2 class="sec" style="margin-top:34px">Setup shots</h2><div class="card">'
|
'<h2 class="sec" style="margin-top:34px">Setup shots</h2><div class="card">'
|
||||||
+ '<p class="foot" style="margin:0 0 14px">Speaks the whole piece once in your pet’s '
|
+ '<p class="foot" style="margin:0 0 14px">Speaks the whole piece once in your pet’s '
|
||||||
+ 'voice, measures where every word actually falls, and cuts the shots at real sentence '
|
+ 'voice, measures where every word actually falls, and cuts the shots at real sentence '
|
||||||
+ 'endings. It divides the words — it does not change them. About a cent.</p>'
|
+ 'endings. It divides the words — it does not change them. '
|
||||||
|
// Measured, not guessed: an 80s piece came back at $0.1589 for 946 characters,
|
||||||
|
// which is the ElevenLabs rate of $22 per 131,000. "About a cent" was wrong by
|
||||||
|
// more than tenfold, so quote the real number for the words actually on screen.
|
||||||
|
+ 'Costs about ' + Math.max(1, Math.round(narrative.length * 22 / 1310))
|
||||||
|
+ ' cents at this length.</p>'
|
||||||
+ '<button type="button" class="btn' + (stale ? '' : ' ghost') + '" id="setupshots">'
|
+ '<button type="button" class="btn' + (stale ? '' : ' ghost') + '" id="setupshots">'
|
||||||
+ 'Setup shots</button>'
|
+ 'Setup shots</button>'
|
||||||
+ '<span class="foot" style="margin-left:12px" id="setupnote"></span></div>';
|
+ '<span class="foot" style="margin-left:12px" id="setupnote"></span></div>';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue