Add phoneme counts

This commit is contained in:
Michael Hansen 2021-08-05 16:40:47 -04:00
commit 297921d683
3 changed files with 92 additions and 3 deletions

View file

@ -15,7 +15,7 @@ class Phonemizer:
espeakCHARS_AUTO = 0
espeakPHONEMES = 0x100
LANG_SWITCH_FLAG = re.compile(r"\([^)]+\)")
LANG_SWITCH_FLAG = re.compile(r"\([^)]*\)")
DEFAULT_CLAUSE_BREAKERS = {",", ";", ":", ".", "!", "?"}