I am developing an ipad application in which I want to add functionality, as shown below: -

When the user presses the play button, text to speech will begin to play that text at this time, this word will be highlighted as they are read.
I know about the built-in iOS function, but I want to do it programmatically.
I searched a lot and got the following:
Link 1
Link 2
Link 3
If anyone knows any API or some kind of built-in framework. Let me know.
Rate your time.
source share