DIDN'T WORK: IPA to ARPABET

I needed to create pronunciations that are not on CMU list. But these github project didn't work. One probably can fix it with little time, project has potential.

Didn't work. [Not sure is it just me or the project but probably easy to make it work, just didn't have time]

TODO: investigate how IPA long pause gets translated to CMU ARPABET.

Tried GitHub project to convert IPA to ARPABET

AX0 is not in CMU dict

IPA to ARPABET

Tried github project that converts IPA to ARPABET

Unfortunately this not what I really need.

Wanted CMU version of ARPABET but got different version. AX0 doesn't exists in CMU version of ARPABET


# https://github.com/chdzq/ARPAbetAndIPAConvertor
from arpabetandipaconvertor.phoneticarphabet2arpabet import PhoneticAlphabet2ARPAbetConvertor
from arpabetandipaconvertor.excepts import PhonemeError

a = PhoneticAlphabet2ARPAbetConvertor()
# https://en.wikipedia.org/wiki/Moderna
# (/məˈdɜːrnə/ mə-DUR-nə)
f1=a.convert('məˈdɜrnə') # M AX0 D ER1 N AX0
f2=a.convert('məˈdɜ:rnə') # M AX0 D ER1 R N AX0
print(f1)
print(f2)


output

(myvenv) np@nps-MacBook-Air ~ % python b.py
M AX0 D ER1 N AX0
M AX0 D ER1 R N AX0
AX0 is not in CMU dict so the output is wrong

Comments