Commit Graph
1 Commits
Author SHA1 Message Date
osobhandClaude Opus 4.7 5a9d37bf4f rtx-csm: emotional_speech_n.sh — N-seed pick-best wrapper
Productionizes yesterday's seed-variance finding. Wraps
emotional_speech.sh, rolls a list of seeds, scores each via
quality_eval (speaker_cosine + Moonshine WER), and copies the
lowest-WER candidate to --out. Defaults to 5 seeds; pass
--seeds 42,7 for cheaper runs.

Tie-breaking is `min(WER), then -max(cosine)` — text fidelity
takes precedence over speaker character because user-typed text
should be rendered verbatim, while voice character is only
secondary on top of context conditioning. Failed generations
(short clips that get the -1 cosine sentinel) sort to the bottom.

Smoke run on the canonical "Today I want to share..." prompt:
  seed 7   → cos 0.845, WER 0.714 "Today, today I want to share..."  ← picked
  seed 100 → cos -1,    WER 1.000 "It is."                            (premature EOT)
  seed 42  → cos 0.916, WER 2.000 "The police are, if you're..."     (drift)

Cost: N × single-shot cost. The recipe being unreliable per-seed
is the whole reason this wrapper exists — pay the multiplier in
exchange for a reliably-best output.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
2026-04-29 12:30:40 -07:00