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:
parent
b5a81bdb15
commit
4fda6060bf
16 changed files with 228 additions and 28 deletions
|
|
@ -11,11 +11,27 @@
|
|||
<code><%= process.env.APP_BASE_URL %>/overlay/<%= settings.overlay_id %>?parts=chat</code><br>
|
||||
<small>Everything except chat (alerts, redeems, poll, Hype Train bar, raid send-off):</small><br>
|
||||
<code><%= process.env.APP_BASE_URL %>/overlay/<%= settings.overlay_id %>?parts=nochat</code><br>
|
||||
<small>Chat somewhere else, e.g. in the Intermission panel (left,top,width,height in px of the 1920×1080 page; <em>up</em> = newest at the bottom):</small><br>
|
||||
<code><%= process.env.APP_BASE_URL %>/overlay/<%= settings.overlay_id %>?parts=chat&chat=130,640,700,360&chatflow=up</code><br>
|
||||
<small title="parts: chat, alerts, poll, hypebar, raid. List them (?parts=chat,raid) or exclude with no… (?parts=nochat,noraid). No ?parts = everything.">
|
||||
Other combinations: hover for help · everything in one source: <code>/overlay/<%= settings.overlay_id %></code></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="display:flex; gap:.8rem; align-items:center; margin-bottom:1.5rem;">
|
||||
<button type="button" id="skip-alert" class="outline" style="width:auto; margin:0;"
|
||||
title="Stops the alert that is on screen right now (sound and TTS voice too). Queued alerts carry on.">⏭ Skip current alert</button>
|
||||
<small id="skip-status"></small>
|
||||
</div>
|
||||
<script>
|
||||
document.getElementById('skip-alert').addEventListener('click', async () => {
|
||||
const st = document.getElementById('skip-status');
|
||||
try { const r = await fetch('/alerts/skip', { method: 'POST' }); st.textContent = r.ok ? 'Skipped' : `Failed (${r.status})`; }
|
||||
catch (e) { st.textContent = 'Failed: ' + e.message; }
|
||||
setTimeout(() => { st.textContent = ''; }, 3000);
|
||||
});
|
||||
</script>
|
||||
|
||||
<h3>Twitch connection</h3>
|
||||
<p>
|
||||
<% if (eventsubStatus.connected) { %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue