Skip to content

Commit 741d48b

Browse files
authored
Add IPA elongation symbol (ː) to list of supported non-alphanumeric IPA characters (#30)
1 parent a662e8f commit 741d48b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nemo2riva/patches/tts/general.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def generate_vocab_mapping_arpabet(labels):
102102

103103
def generate_vocab_mapping_ipa(labels):
104104
# Only support English IPA dict
105-
VALID_NON_ALNUM_IPA_TOKENS = ['ˈ', 'ˌ']
105+
VALID_NON_ALNUM_IPA_TOKENS = ['ˈ', 'ˌ', 'ː']
106106
mapping = []
107107
for idx, token in enumerate(labels):
108108
if token in VALID_NON_ALNUM_IPA_TOKENS or (str.isalnum(token) and str.islower(token)):

0 commit comments

Comments
 (0)