We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f9843cf + 863bfbd commit 0735e65Copy full SHA for 0735e65
matcha/text/cleaners.py
@@ -114,6 +114,20 @@ def english_cleaners2(text):
114
return phonemes
115
116
117
+def ipa_simplifier(text):
118
+ replacements = [
119
+ ("ɐ", "ə"),
120
+ ("ˈə", "ə"),
121
+ ("ʤ", "dʒ"),
122
+ ("ʧ", "tʃ"),
123
+ ("ᵻ", "ɪ"),
124
+ ]
125
+ for replacement in replacements:
126
+ text = text.replace(replacement[0], replacement[1])
127
+ phonemes = collapse_whitespace(text)
128
+ return phonemes
129
+
130
131
# I am removing this due to incompatibility with several version of python
132
# However, if you want to use it, you can uncomment it
133
# and install piper-phonemize with the following command:
0 commit comments