I'm using the typed.js integration module for Sugarcube, and I'd like a typewriter effect to play whenever something is typed. I tried doing this:
<<audio "type" play>>
<div class="typed-speed15">
Another person missing in a series of disappearances
</div>
<<audio "type" stop>>
But the audio doesn't play. I'm guessing "play" and "stop" are happening at the same time, because when I do this:
<<audio "type" play>>
<div class="typed-speed15">
Another person missing in a series of disappearances
</div>
<<timed 1s>>
<<audio "type" stop>>
<</timed>>
The audio plays. But it would be nice if I didn't have to measure the time it takes for each portion of text to be written out to "play" and "stop" the audio at the right time. The typed.js module documentation states that a ":typedcomplete" event exists, but it doesn't seem to be in the same language as Twine so I'm not sure how to use this. Any help would be appreciated.