can't resolve the clicking

This commit is contained in:
Concedo
2025-08-26 17:55:03 +08:00
parent ff1d179e21
commit 75c919cfd4
5 changed files with 99 additions and 14 deletions
+2
View File
@@ -1426,11 +1426,13 @@ int kokoro_runner::generate(std::string prompt, struct tts_response * response,
prompt = replace_any(prompt, ";:", "--");
prompt = replace_any(prompt, "\n", "--");
kokoro_str_replace_all(prompt,"","'");
kokoro_str_replace_all(prompt,"Mr. ","Mister ");
prompt = std::regex_replace(prompt, std::regex("(\\w)([.!?]) "), "$1$2, ");
kokoro_str_replace_all(prompt," - "," -- ");
kokoro_str_replace_all(prompt,"he's ","he is ");
kokoro_str_replace_all(prompt,"'s ","s ");
kokoro_str_replace_all(prompt,"n't ","nt ");
kokoro_str_replace_all(prompt,"*"," ");
std::string phonemized_prompt = phmzr->text_to_phonemes(prompt);
// printf("\nRESULT: %s\n",phonemized_prompt.c_str());