I’m am building a web app and need a text to speech which highlights the text being read at the moment. I built the text to speech but don’t have any idea how to tackle the highlighting of text are there any tips or functions for this problem?
10x a lot.
I’m am building a web app and need a text to speech which highlights
Share
It’s a Web app, so the highlighting must be done on the client.
I guess the TTS transform is done on the server. Could you also generate a timeline along with the sound (“from millisecond m1 to m2, the phrase between positions p1 and p2 is spoken”)? Then client-side javascript has a handle on when to highlight what portion of the text.
Next challenge: have playback and higlighting start/stop at the same time.