mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-06 03:57:44 +08:00
Merge pull request #775 from KamioRinn/Fix-chinese-ellipsis
Fix chinese ellipsis
This commit is contained in:
commit
c2ac07bc3d
@ -113,7 +113,7 @@ class TextNormalizer():
|
|||||||
sentence = sentence.replace('ψ', '普赛').replace('Ψ', '普赛')
|
sentence = sentence.replace('ψ', '普赛').replace('Ψ', '普赛')
|
||||||
sentence = sentence.replace('ω', '欧米伽').replace('Ω', '欧米伽')
|
sentence = sentence.replace('ω', '欧米伽').replace('Ω', '欧米伽')
|
||||||
# re filter special characters, have one more character "-" than line 68
|
# re filter special characters, have one more character "-" than line 68
|
||||||
sentence = re.sub(r'[-——《》【】<=>{}()()#&@“”^_|…\\]', '', sentence)
|
sentence = re.sub(r'[-——《》【】<=>{}()()#&@“”^_|\\]', '', sentence)
|
||||||
return sentence
|
return sentence
|
||||||
|
|
||||||
def normalize_sentence(self, sentence: str) -> str:
|
def normalize_sentence(self, sentence: str) -> str:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user