TTS: allow up to 500 characters, smaller handwriting on the letter for long messages

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Bashy 2026-11-21 15:03:07 +02:00
parent 50fd4b1cad
commit cf90b6be54
5 changed files with 12 additions and 7 deletions

View file

@ -25,7 +25,7 @@ router.post('/', (req, res) => {
gap_audio_min_volume: flt(b.gap_audio_min_volume, 0.2),
gap_audio_max_volume: flt(b.gap_audio_max_volume, 1.0),
gap_audio_loud_after: int(b.gap_audio_loud_after, 3600),
tts_max_chars: Math.max(20, Math.min(300, int(b.tts_max_chars, 200))),
tts_max_chars: Math.max(20, Math.min(500, int(b.tts_max_chars, 200))),
tts_say_name: b.tts_say_name === 'on' ? 1 : 0,
tts_blocklist: String(b.tts_blocklist || '').slice(0, 20000),
custom_css: b.custom_css || '',

View file

@ -20,7 +20,7 @@ const VOICES_DIR = process.env.TTS_VOICES_DIR || path.join(ROOT, 'tools/tts/voic
const OUT_DIR = path.join(ROOT, 'public/tts');
const TMP_DIR = path.join(OUT_DIR, 'tmp');
const KEEP_FILES = 300; // cached mp3s kept in public/tts (oldest deleted first)
const MAX_CHARS = 300;
const MAX_CHARS = 500; // Twitch chat messages are max 500 characters
const SR = 44100;
const LIMITS = {