How to animate typed text that should be shown word by word when talked with ZIM speech() speech.talk()

It would be cool that each word-by-word that is talked by speech API technology of ZIM speech: can be shown what is talked.
(I already found the code to have it letter by letter but not with speech thanks to @josephd How to make "typing text" animated letter by letter - #5 by karelrosseel82 )

but now word-word-word and speech, I searched on internet
I found this article, but I don't know how te implement in ZIM..
I tried the jsfiddle in this article https://jsfiddle.net/mrAddy/t9k8xtkt/


but it would be cool this code from an other person 'worked one day to create this' to let it work in ZIM
https://stackoverflow.com/questions/29213548/is-it-possible-to-highlight-strong-each-word-spoken-in-a-sentence-with-web-spe

can anyone help me further


thanks to help me out
greetings
Karel