Updating the version

This commit is contained in:
Shivam Mehta
2024-11-14 06:42:06 +01:00
parent 7275764a48
commit 7a65f83b17
2 changed files with 4 additions and 2 deletions

View File

@@ -1 +1 @@
0.0.7.0
0.0.7.1

View File

@@ -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