learn_to_pronounce.phonetics.ARPAbetConvertor

class learn_to_pronounce.phonetics.ARPAbetConvertor[source]

Converts ARPAbet (phonemeset of CMUDict) to more universal IPA or X-SAMPA. X-SAMPA - is unicode-friendly version of IPA (international pronunciation alphabet). ARPAbet: https://en.wikipedia.org/wiki/ARPABET IPA: https://en.wikipedia.org/wiki/International_Phonetic_Alphabet X-SAMPA: https://en.wikipedia.org/wiki/X-SAMPA Conversion notes: https://github.com/menelik3/cmudict-ipa, https://github.com/Epicalert/xsampadict. One modification to IPA/XSAMPA notation: stress marks are put just before vowel, not before syllable. That helps to treat stressed/unstressed vowels as separate phonemes for g2p training/forced alignment purposes

__init__()[source]