TTS blocklist: starter list of slurs/TOS phrases, whole-word matching
- src/tts-blocklist.txt: slurs, self-harm/threat phrases, sexual violence, hate slogans (no normal swearing); merged into Settings once (tts_blocklist_seeded), editable there afterwards - Matching is now whole words/phrases with plurals, look-alike swaps and spaced-out letters, so raccoon / spicy / therapist / grape are fine Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
cf90b6be54
commit
9e356b0875
5 changed files with 90 additions and 11 deletions
|
|
@ -139,8 +139,9 @@ Chat (`?parts=chat`) is `public/chat/chat.css` + `public/chat/chat.js` (window.H
|
|||
|
||||
Builder page to make named TTS voices, used by redeem variations (Redeems page: "TTS: <voice>" per variation).
|
||||
- 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
|
||||
repeats collapsed, cut to `settings.tts_max_chars` at a word, `settings.tts_blocklist` -> nothing read, letter says
|
||||
"(message removed)"; whole-word matching with plurals, look-alike swaps and spaced-out letters; starter list
|
||||
`src/tts-blocklist.txt` is merged into the setting once, `tts_blocklist_seeded`), synthesizes "<user> says: <text>" (`tts_say_name`), and only then sends the alert with
|
||||
`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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue