Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -74,6 +74,7 @@ def normalize_phoneme_string(s: str) -> str:
|
|
74 |
'ɚ': 'ɝ', # R-colored schwa → r-colored vowel (both "er" sounds)
|
75 |
'ʌ': 'ə', # Open-mid back → schwa (both unstressed "uh" sounds)
|
76 |
'ð': 'θ', # Voiced th → voiceless th (accent training - treat as equivalent)
|
|
|
77 |
}
|
78 |
|
79 |
for ascii_char, ipa_char in ascii_to_ipa.items():
|
|
|
74 |
'ɚ': 'ɝ', # R-colored schwa → r-colored vowel (both "er" sounds)
|
75 |
'ʌ': 'ə', # Open-mid back → schwa (both unstressed "uh" sounds)
|
76 |
'ð': 'θ', # Voiced th → voiceless th (accent training - treat as equivalent)
|
77 |
+
'ɹ': 'r', # Retroflex approximant → regular r (espeak vs CMUdict difference)
|
78 |
}
|
79 |
|
80 |
for ascii_char, ipa_char in ascii_to_ipa.items():
|