Skip to content

Commit 02e05f9

Browse files
committed
fix for comma pausing in kokoro
1 parent b0a8d11 commit 02e05f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

otherarch/ttscpp/src/kokoro_model.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,8 +1422,8 @@ int kokoro_runner::generate(std::string prompt, struct tts_response * response,
14221422
}
14231423
// replace all non-sentence terminating characters with '--' which espeak will treat as a pause.
14241424
// We preserve the other punctuation for cleaner chunking pre-tokenization
1425-
prompt = replace_any(prompt, ",;:", "--");
1426-
prompt = replace_any(prompt, "\n", " ");
1425+
prompt = replace_any(prompt, ";:", "--");
1426+
prompt = replace_any(prompt, "\n", ". ");
14271427
kokoro_str_replace_all(prompt," - "," -- ");
14281428
kokoro_str_replace_all(prompt,"he's ","he is ");
14291429
kokoro_str_replace_all(prompt,"'s ","s ");

0 commit comments

Comments
 (0)