From 02e05f9321cb9c8b8c1aaaf61288568c3704bdc5 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Mon, 25 Aug 2025 00:18:00 +0800 Subject: [PATCH] fix for comma pausing in kokoro --- otherarch/ttscpp/src/kokoro_model.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otherarch/ttscpp/src/kokoro_model.cpp b/otherarch/ttscpp/src/kokoro_model.cpp index db0f5b0c3..c1a71acff 100644 --- a/otherarch/ttscpp/src/kokoro_model.cpp +++ b/otherarch/ttscpp/src/kokoro_model.cpp @@ -1422,8 +1422,8 @@ int kokoro_runner::generate(std::string prompt, struct tts_response * response, } // replace all non-sentence terminating characters with '--' which espeak will treat as a pause. // We preserve the other punctuation for cleaner chunking pre-tokenization - prompt = replace_any(prompt, ",;:", "--"); - prompt = replace_any(prompt, "\n", " "); + prompt = replace_any(prompt, ";:", "--"); + prompt = replace_any(prompt, "\n", ". "); kokoro_str_replace_all(prompt," - "," -- "); kokoro_str_replace_all(prompt,"he's ","he is "); kokoro_str_replace_all(prompt,"'s ","s ");