fix: XTTS chunk size 150 chars (faster render, preload overlaps playback)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
duffyduck 2026-04-10 02:52:56 +02:00
parent f7f450a09d
commit 949c573c49
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ async function handleTTSRequest(payload) {
.filter(s => s.length > 0) .filter(s => s.length > 0)
.map(s => s.replace(/[.]+$/, '')); // Punkt am Ende entfernen .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 = []; const chunks = [];
let currentChunk = ''; let currentChunk = '';
for (const sentence of sentences) { for (const sentence of sentences) {