phonemizer fixes, now kokoro works very well

This commit is contained in:
Concedo
2025-08-18 16:13:16 +08:00
parent 3f621be7dd
commit 67ef5e6c02
13 changed files with 58645 additions and 58612 deletions
+1
View File
@@ -1426,6 +1426,7 @@ int kokoro_runner::generate(std::string prompt, struct tts_response * response,
prompt = replace_any(prompt, "\n", " ");
kokoro_str_replace_all(prompt," - "," -- ");
kokoro_str_replace_all(prompt,"'s ","s ");
kokoro_str_replace_all(prompt,"wasn't ","wasnt ");
std::string phonemized_prompt = phmzr->text_to_phonemes(prompt);
// printf("\nRESULT: %s\n",phonemized_prompt.c_str());