Play audio using Javascript

I am creating a course with multiple audio files. If I place them on the slides/ layers it takes a considerable time to load. I want to try to play the audio using the javascript.

Any idea on how to do this? I am not a Javascript expert and needs support from JS experts.

Where should I place the audio?

What is the code to write in 'Execute Javascript' trigger?

Highly appreciate if someone can help with this.

1 Reply