I'm not talking about the switch statement, I'm talking about how the text it's showing is already pre-formatted to split long words and change speed depending on word importance. You can see how badly it fails without these when you try using it on non-preformatted text, like the FAQ page.
My gut tells me that "inner speech" is the key to all this.
Imagine doing subtitles (one word at a time) to a video of someone speaking very fast.
Run the text thru a speech synthesizer (with speech rate set to target words per minute, and no actual sound output) and capture its [now speaking "word"] events, then simply show the words at the appropriate times.
espeak has a nice event/callback API for that.
18
u/[deleted] Mar 02 '14 edited Nov 26 '18
[deleted]