[UPD] Changed word multiplicator

Добавил дефисы в удлинённые буквы, чтобы звучало характернее.
This commit is contained in:
homayk228
2025-10-08 20:54:22 +07:00
parent f102f4adb3
commit a2c94ec024

View File

@@ -52,8 +52,8 @@ class NekoSpeakModule(loader.Module):
if word.lower().startswith("н") and len(word) > 2 and random.random() < 0.05:
word = "ня" + word[2:]
if random.random() < 0.05:
word = word.replace("р", "р" * random.randint(2,4))
word = word.replace("r", "r" * random.randint(2,4))
word = word.replace("р", "р-" * random.randint(2,4)+"р")
word = word.replace("r", "r" * random.randint(2,4)+"r")
new_words.append(word)
text = " ".join(new_words)