Forum Discussion
How to add Voiceover to Quiz questions?
I don't think there's a particularly easy answer, in part because the course doesn't read the page like an accessibility reader does. When we create TTS audio files, it's just a normal sound file. I can delete or change a textbox and the audio will still play when the course is run, so the playing of the audio is separate from whatever's on the slide.
The easy part though is playing sound files. If each question's answer has a TTS audio file generated for it, and each audio file gets its own layer, then in theory a series of triggers could play the layers in a certain order, whether it's 1-3-4-2 or 1-2-4-3 or whatever.
The challenge would be figuring out how to find that order when the slide is dynamically arranging the answers. I'm sure there's an answer in JavaScript.
From a quick mockup slide, I can see that three multiple-choice answers are in a div with the class "slide-object-shufflegroup." JavaScript would be able to loop through that object and find each of the answer choices from top-to-bottom, and then the accessibility text of each could be used to determine which answer is which, and then the order set to a Storyline variable that cascades the audio layers like mentioned prior.
Do you have any JavaScript experience?
Related Content
- 1 year ago