TTS redeems: envelope letter with words inked in as spoken
- TTS alerts use the new `tts` style: envelope opens, the letter rises out and settles in front near the top, words ink in as the voice says them (timed from a loudness curve the server sends: tts.loudness, tts_env, tts_prefix); if the voice fails, the full text shows - Highlight my message keeps its taped note Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4fda6060bf
commit
060b2351f7
6 changed files with 122 additions and 9 deletions
|
|
@ -141,7 +141,10 @@ Builder page to make named TTS voices, used by redeem variations (Redeems page:
|
|||
- Redeem with a TTS voice + viewer text: `redeems.addSpeech()` cleans the text (`tts.prepareViewerText`: links out,
|
||||
repeats collapsed, cut to `settings.tts_max_chars` at a word, `settings.tts_blocklist` -> nothing read, note says
|
||||
"(message removed)"), synthesizes "<user> says: <text>" (`tts_say_name`), and only then sends the alert with
|
||||
`tts` (URL) + `tts_ms`. Shown as the big paper note (style `message`, caption "says:"). TTS on = the variation's
|
||||
`tts` (URL), `tts_ms`, `tts_env` (loudness per 40 ms, `tts.loudness()`) and `tts_prefix` (words said before the message).
|
||||
Shown as the envelope letter (style `tts`, `public/alerts/fx.js` envelope(), CSS in fx.css): flap opens, the letter rises
|
||||
out and settles in front ~80px from the top, words ink in as spoken (timing estimated from tts_env; if the voice
|
||||
does not start, the whole text shows). Design preview: `~/Desktop/Stream/tts-alerts/`. TTS on = the variation's
|
||||
sound is not sent (the voice replaces it; the Redeems page greys the picker out). Synthesis errors: the note still shows, silent.
|
||||
- Dashboard "Skip current alert" -> POST `/alerts/skip` -> WS `{type:'alert_skip'}` -> `PolaroidAlerts.skip()`.
|
||||
- `tts_blocklist` never goes to overlay pages: they get `db.getOverlaySettings()` (render and settings_update).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue