Forum Discussion

AndreaBorsoi-1d's avatar
AndreaBorsoi-1d
Community Member
2 years ago

Selecting a Text-to-Speech file over another based on a variable

I have created two equal Text-to-Speech audio files (same text) with different female voices. Based on a variable stored previously, which set a state on a character (changing the picture) I would also like to play one voice or the other, based on the same variable. This is because some voices seems not to fit certain characters. I was wondering if anyone has ever done it, via layers maybe (invoked by the variable) so that the layer path becomes different (each layer carrying a different audio file?)? It's not about reading out variables (I know audios created in Articulate are fixed) but about playing different audio files (one excluding the other) based on a character variable. Thanks in advance.

Andrea

  • Your idea of putting the audio files on separate layers is probably the simplest way to do what you want. Then add triggers on the base to show the appropriate layer when the timeline starts based on the value of your character variable. 

    If you need to keep everything on the base (for example, because layers are used for other content), you could do this for each audio file: 

    • Add a trigger to pause the audio when the timeline starts.
    • Add a trigger to resume the audio when the timeline starts, with a condition based on the value of the character variable.