mirror of
https://github.com/shivammehta25/Matcha-TTS.git
synced 2026-02-04 09:49:21 +08:00
Updating the version
This commit is contained in:
@@ -1 +1 @@
|
||||
0.0.7.0
|
||||
0.0.7.1
|
||||
|
||||
@@ -74,9 +74,11 @@ def expand_abbreviations(text):
|
||||
def lowercase(text):
|
||||
return text.lower()
|
||||
|
||||
|
||||
def remove_brackets(text):
|
||||
return re.sub(_brackets_re, "", text)
|
||||
|
||||
|
||||
def collapse_whitespace(text):
|
||||
return re.sub(_whitespace_re, " ", text)
|
||||
|
||||
@@ -107,7 +109,7 @@ def english_cleaners2(text):
|
||||
text = expand_abbreviations(text)
|
||||
phonemes = global_phonemizer.phonemize([text], strip=True, njobs=1)[0]
|
||||
# Added in some cases espeak is not removing brackets
|
||||
phonemes = remove_brackets(phonemes)
|
||||
phonemes = remove_brackets(phonemes)
|
||||
phonemes = collapse_whitespace(phonemes)
|
||||
return phonemes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user