rhasspy / gruut-ipa

Python library for manipulating pronunciations using the International Phonetic Alphabet (IPA)
MIT License
78 stars 12 forks source link

r\ converted as \u0270\u0329 #1

Closed arjaz closed 3 years ago

arjaz commented 3 years ago

There is an issue when we convert r\ from sampa to ipa. I'd expect it to be ɹ, but we get ɰ̩ instead. The issues is that when we construct SAMPA_TO_IPA dictionary, we reverse the IPA_TO_SAMPA one, but we have r\ as a value twice in it, so it get's rewritten.

https://github.com/rhasspy/gruut-ipa/blob/480e284d6c9602f9f0025559d9528de9ba6353ad/gruut_ipa/sampa.py#L194

synesthesiam commented 3 years ago

Thanks! Got this fixed in version 0.9.2.