From 949c573c4921f80b524b7f0da64ea52f534e4926 Mon Sep 17 00:00:00 2001 From: duffyduck Date: Fri, 10 Apr 2026 02:52:56 +0200 Subject: [PATCH] fix: XTTS chunk size 150 chars (faster render, preload overlaps playback) Co-Authored-By: Claude Opus 4.6 (1M context) --- xtts/bridge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtts/bridge.js b/xtts/bridge.js index 84fb20b..3978034 100644 --- a/xtts/bridge.js +++ b/xtts/bridge.js @@ -107,7 +107,7 @@ async function handleTTSRequest(payload) { .filter(s => s.length > 0) .map(s => s.replace(/[.]+$/, '')); // Punkt am Ende entfernen - const MAX_CHUNK_CHARS = 250; // Max ~250 Zeichen pro Chunk + const MAX_CHUNK_CHARS = 150; // Max ~150 Zeichen pro Chunk (schnelles Rendering, Preloading reicht) const chunks = []; let currentChunk = ''; for (const sentence of sentences) {