TTS redeems, skip button, per-source chat placement

- Redeem variations can have a TTS voice: the viewer's text is cleaned
  (links out, repeats collapsed, max length, blocked words -> not read),
  spoken as "<name> says: ..." and shown as the big paper note; the
  variation's sound is not played when TTS is on (picker greyed out)
- Settings: TTS max length, say-the-name, blocked words (never sent to
  overlay pages: db.getOverlaySettings)
- Dashboard "Skip current alert" -> /alerts/skip -> overlay skips it
- db.migrate()/addColumn: new columns on existing databases
- Chat: ?chat=left,top,width,height and ?chatflow=up per browser source
  (e.g. the Intermission panel); default unchanged

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Bashy 2026-11-21 14:34:41 +02:00
parent b5a81bdb15
commit 4fda6060bf
16 changed files with 228 additions and 28 deletions

View file

@ -58,6 +58,25 @@
<small>e.g. 3600 = 1 hour of silence → max volume</small>
</label>
<h3>TTS redeems</h3>
<p><small>For redeem variations with a TTS voice (set on the Redeems page; voices are made on the TTS page).</small></p>
<div style="display:grid; grid-template-columns:1fr 1fr; gap:1rem;">
<label>
Max length (characters)
<input type="number" name="tts_max_chars" value="<%= settings.tts_max_chars %>" min="20" max="300">
<small>Longer messages are cut at a word.</small>
</label>
<label style="align-self:center;">
<input type="checkbox" name="tts_say_name" role="switch" <%= settings.tts_say_name ? 'checked' : '' %>>
Say the name first ("ChickenWhisperer says: …")
</label>
</div>
<label>
Blocked words
<textarea name="tts_blocklist" rows="4" placeholder="one per line, or comma-separated"><%= settings.tts_blocklist %></textarea>
<small>If a message contains one, nothing is read and the note shows "(message removed)". Not case-sensitive; also catches simple swaps like 0→o, $→s, and spaced-out letters for words of 4+ letters. Links are always removed.</small>
</label>
<h3>Custom CSS / JS</h3>
<label>
Custom CSS (injected into the overlay)