Skip to content

Commit

Permalink
update SYMBOLS_MAPPING (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
Honst211 authored Sep 13, 2024
1 parent 4c9570f commit c7c8c94
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion fish_speech/text/clean.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import re

SYMBOLS_MAPPING = {
"\n": ".",
"…": ".",
"“": "'",
"”": "'",
"‘": "'",
Expand All @@ -13,7 +15,19 @@
")": "",
"(": "",
")": "",
"・": "·",
"・": "",
"·": "",
"「": "'",
"」": "'",
"《": "'",
"》": "'",
"—": "",
"~": "",
"~": "",
":": ",",
";": ",",
";": ",",
":": ",",
}

REPLACE_SYMBOL_REGEX = re.compile(
Expand Down

0 comments on commit c7c8c94

Please sign in to comment.