Skip to content

Commit

Permalink
Some more tts sanitize (space-syndicate#1136)
Browse files Browse the repository at this point in the history
  • Loading branch information
lzk228 committed Jun 22, 2023
1 parent bd1ecfa commit 2819cf9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Content.Server/Corvax/TTS/TTSSystem.Sanitize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ private string ReplaceWord2Num(Match word)
{"id", "Ай Ди"},
{"мщ", "Эм Ще"},
{"вт", "Вэ Тэ"},
{"wt", "Вэ Тэ"},
{"ерп", "Йе Эр Пэ"},
{"се", "Эс Йе"},
{"апц", "А Пэ Цэ"},
Expand Down Expand Up @@ -120,6 +121,11 @@ private string ReplaceWord2Num(Match word)
{"рхбз", "Эр Хэ Бэ Зэ"},
{"рхбзз", "Эр Хэ Бэ Зэ Зэ"},
{"днк", "Дэ Эн Ка"},
{"мк", "Эм Ка"},
{"mk", "Эм Ка"},
{"рпг", "Эр Пэ Гэ"},
{"с4", "Си 4"}, // Russian
{"c4", "Си 4"}, // English
};

private static readonly IReadOnlyDictionary<string, string> ReverseTranslit =
Expand Down

0 comments on commit 2819cf9

Please sign in to comment.