eSpeak is capable of transforming text to IPA, as also mentioned in this question.
I want to use the same feature in its Windows version. Is it possible?
I have tried a lot, but failed.
Thanks for helping.
I don't know exactly what you failed to do. Assuming that you have the program installed and located the command-line exe, you opened a command window and ran the program as e.g. espeak --phonout="test.txt" --ipa "this is my text", you should get the IPA string " ðɪs ɪz maɪ tˈɛkst" in test.txt. If you run the program in the Program Files (x86) directory where espeak is installed and write to that diretory, you have to run under an admin command window, in order to also write to the directory where you're running the program (I forgot this and wasted some time remembering this). Maybe clarify what worked and what didn't.