I am trying to achieve English words to Phoneme word translation to create a language model for CMUSphinx. Now I am using the following tool to achieve the word translation link
For example if I give a text file as input with the following word it would get translated as follows
NAMASTE N AH M EY S T
But I want to do this on the fly dynamically using Java. Are there any API or libraries out there to achieve this.I do not want to reinvent the wheel.Or some other programming language which has libraries I could use.