feat(tts): per-sentence glow synced to audio via Web Audio pause detection

When Auto-Play TTS reads a message, wrap its sentences in spans and advance a
glow highlight on detected inter-sentence silences (RMS dips), with a
char-proportional fallback. Comma/clause pauses are detected too, reserved for
a future word-level highlight. Tunable via window.GLOW.
This commit is contained in:
russell@unturf.com 2026-05-29 11:52:08 -04:00
parent 57a5b6f243
commit 0fdb673a70
No known key found for this signature in database
2 changed files with 160 additions and 0 deletions

View file

@ -1381,3 +1381,13 @@ a:hover {
font-size: 12px;
color: var(--text-secondary);
}
/* Per-sentence glow while TTS reads a message aloud */
.tts-sentence {
border-radius: 3px;
transition: background-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}
.tts-sentence.tts-reading {
background: rgba(255, 214, 92, 0.30);
box-shadow: 0 0 10px 2px rgba(255, 200, 70, 0.55);
}