Can We Create Action After Audio Play?

In Flash - You could add an audio file to the stage and literally see the SINE WAVE in the timeline. (This would be an awesome feature to be added into Hype… unless it’s there and I just don’t know how to do it.) Anyway, it was very easy to PRECISELY control what happened before, during & after an audio clip played; you could also add a delay to the button action.

Is there a way to do this in Hype? When playing sounds… such as maybe a big echoing GONG when a button is clicked, the page will change and cut off the audio before the sound can finish. How can we make a button action WAIT for a period of time, or wait for the sound to finish, and THEN change pages or execute whatever function is attached to the button.
Thank you.

This page might help… https://stackoverflow.com/questions/9346579/how-can-i-tell-when-an-html5-audio-element-has-finished-playing

…also… https://howlerjs.com …might be an option, which has the “onend” function… https://github.com/goldfire/howler.js#options

Searching the forums might help too. Like this…

…which shows this…

…and this…

Let the button trigger a timeline and call next scene on the Time Index as a Timeline Action.

This is definitely a feature request on our radar. Some enterprising users on our forums have found ways to show a waveform while editing. I found this one from @JimScott but I feel like there might be some others:

One important caveat to note is that using a <video> or <audio> tag might not be an exact sync; you can use it in the editor but it will probably work out better if the actual audio comes from using Hype's built-in audio as this uses lower latency Web Audio API when available.

(Also note that autoplay of audio in browsers has pretty much gone the way of the dodo bird)

Thank you very much for your help guys… very cool info! :upside_down_face:

1 Like