Skip to main content
Known Participant
July 23, 2020
Question

Multi lingual HTML animation

  • July 23, 2020
  • 1 reply
  • 326 views

Hi Team

I am developing a HTML animation which has 2D content, voice over, subtitles and a few videos.

The voice overs are going to be in many languages. Is there a way to change only the language at the flick of a button instead of creating the animation repeatedly in different languages?

Best Regards

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    July 25, 2020

    yes, if you use code to play the audio.

    Known Participant
    July 25, 2020

    Hi kglad

     

    Thanks for your post. Possible to share a sample code?

     

    Best Regards

    kglad
    Community Expert
    Community Expert
    July 25, 2020

    if you have narrations in your library with linkage id = englishID, frenchID, spanishID,... you can pass the id to playLanguageF():

     

    function playLanguageF(s){

    var narration = createjs.Sound.createInstance(s);

    narration.play();

    }