fix kokoro replacement, add 4096 batch size option

This commit is contained in:
Concedo
2025-08-25 15:57:13 +08:00
parent d2c9fdddcb
commit 205a0b8d4c
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -1424,6 +1424,7 @@ int kokoro_runner::generate(std::string prompt, struct tts_response * response,
// We preserve the other punctuation for cleaner chunking pre-tokenization
prompt = replace_any(prompt, ";:", "--");
prompt = replace_any(prompt, "\n", ". ");
kokoro_str_replace_all(prompt,"","'");
kokoro_str_replace_all(prompt," - "," -- ");
kokoro_str_replace_all(prompt,"he's ","he is ");
kokoro_str_replace_all(prompt,"'s ","s ");