Thai Grapheme-to-Phoneme (Thai G2P)
I using data from http://thai-notes.com/ and ICU.
install pythainlp from github
pip install https://github.com/PyThaiNLP/pythainlp/archive/dev.zip
and install pyicu.
run
> python thai2ipa.py
Text : ผมเรียนอยู่ที่มหาวิทยาลัยขอนแก่นวิทยาเขตหนองคาย
phǒm|rian|yùu|thîi|ma-hǎa-wít-tha-yaa-lay-khɔ̌ɔn-kɛ̀ɛn|wít-tha-yaa-khèet|nɔ̌ɔŋ-khaay
Mr. Wannaphong Phatthiyaphaibun
Student
Bachelor of Science Program in Computer and Information Science,
Faculty of Applied Science and Engineering,
Nong Khai Campus, Khon Kaen University