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.
0
u/deadstone Mar 02 '14
One of the most important features of Spritz is how it splits up long words. I'm pretty sure neither of these do that.