Skip to main content
Inspiring
May 22, 2016
Question

How to control audio in Animate CC

  • May 22, 2016
  • 1 reply
  • 7182 views

Dear Friends,

please tell me the ways to control audio sounds (voice over sink) in Animate CC. Iam converting my flash elearning lessons in to html5 with Animate CC. In my flash lessons I have voice over as stream and animation is sinking with voice over.

Kindly help me to convert this lessons....Thanks in Advance,

Thanks and Regards,

Syed Abdul Rahim

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 22, 2016

you'll need to play your sound using easeljs, create a loop and use the sound's position property to determine what to display.

rahimhajiAuthor
Inspiring
May 23, 2016

Dear Mr.kglad,

Greetings! thks for ur info. Can u pls send me a sample code? is it possible to pause and play a sound in animate CC? here I tried with time line import of audio, in my lesson, sound is finishing fast, animation coming later.. no voice over sync... pls advice me, or send me a sample code.

Thanks and Regards,

Syed Abdul Rahim

kglad
Community Expert
Community Expert
May 23, 2016

yes, you can pause and play (google soundjs api) and here's how to sync your sound and display:

createjs.Sound.addEventListener("fileload", loadedF.bind(this));

createjs.Sound.registerSound("yoursound.mp3", "sound_id");

var prop;

var sound;

function loadedF(e) {

sound = createjs.Sound.play("sound_id");

createjs.Ticker.addEventListener("tick", tickF);

}

function tickF(e) {

// display whatever based on sound.position;

}