mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-19 09:15:18 +02:00
can't resolve the clicking
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
@@ -893,9 +893,11 @@ bool phonemizer::process_word(corpus* text, std::string* output, std::string wor
|
||||
text->size_pop(word.size()+unaccented_size_difference);
|
||||
return true;
|
||||
}
|
||||
} else if (can_be_roman_numeral(word) && is_all_upper(word) && small_english_words.find(to_lower(word)) == small_english_words.end() && handle_roman_numeral(text, output, flags)) {
|
||||
return true;
|
||||
} else if (is_acronym_like(text, word, flags)) {
|
||||
}
|
||||
// else if (can_be_roman_numeral(word) && is_all_upper(word) && small_english_words.find(to_lower(word)) == small_english_words.end() && handle_roman_numeral(text, output, flags)) {
|
||||
// return true;
|
||||
// }
|
||||
else if (is_acronym_like(text, word, flags)) {
|
||||
return handle_acronym(text, word, output, flags);
|
||||
} else if (word.find(".") < word.length()) {
|
||||
bool part_has_accent = false;
|
||||
|
||||
Reference in New Issue
Block a user