greg0rs commited on
Commit
d46b705
·
verified ·
1 Parent(s): 5a762af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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():