From 7098f318e9fdac2be989ef47ea1ae67d57cbb650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20F=C3=B6rtsch?= Date: Thu, 19 Feb 2026 10:28:16 +0100 Subject: [PATCH] increase maxTokens from 96 to 512 to fix text truncation --- VorleserMac/Services/KokoroPipeline.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VorleserMac/Services/KokoroPipeline.swift b/VorleserMac/Services/KokoroPipeline.swift index 7f0faae..5a1de3f 100644 --- a/VorleserMac/Services/KokoroPipeline.swift +++ b/VorleserMac/Services/KokoroPipeline.swift @@ -42,7 +42,7 @@ final class KokoroPipeline { } func synthesize(text: String) throws -> [Float] { - let (phonemes, tokenIdsAll, unknown, phonemeScalarCount) = try prepareTokens(from: text, maxTokens: 96) + let (phonemes, tokenIdsAll, unknown, phonemeScalarCount) = try prepareTokens(from: text, maxTokens: 512) if !unknown.isEmpty { print("KokoroTokenizer unknown tokens: \(unknown.prefix(20))") }