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:
parent
57a5b6f243
commit
0fdb673a70
2 changed files with 160 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue