Background Audio Cool Trick

Hi All,

Just wanted to share a way to add audio across all slides in Storyline 2 There are a few posts on here about this, and I found this method to be super simple.

**Please note that this is just a cool trick, and not a built in feature of Storyline 2.

Publish your course, open the story.html file with Notepad, scroll to the bottom and add this code

<audio src="YOURAUDIOHERE.mp3" preload="auto" autoplay loop></audio>  with a space before the </body> and place your audio file into the published output folder and there you go. That is it.

Here is an example, http://bit.ly/1sy5dkV  and the output folder is attached.

Have fun!

240 Replies
Dave Cox

Hi Ryan,

Yes, you are correct. You do need to update the story_html5.html file as well. Unfortunately, Storyline now minifies that file, which makes it much harder to read and understand. It is doable though. The best way, is to edit the file to add some of the line feeds back in to make the file more readable. Javascript doesn't care about white-space, so this will not hurt the file. Then you can add the required code.

Hi Travis,

The error you are seeing tells you that either your path or your filename is incorrect. Since you didn't specify a path, make sure that your audio file is in the same directory as the html file. Also, take a look at the capitalization that you used for the filename. Windows doesn't care about case, but Javascript does. Make sure that your Javascript name matches the case of the file name that you see when you display it in the explorer window. 

I hope that it is that simple. Good luck.

Dave

Jill S

I have to agree with Gerry. Almost 4 years and 220 replies, not to mention countless hours trying to get it to work. As IDs, we are competing for the attention of people who walk around with a pocket-sized world of entertainment at their fingertips. If we can become more interesting by playing a tune through an entire (and it's gotta be short) item of training, I'll take the chance. Please Articulate, add this feature already.

ioulia Kornberg

Hey Owen,

Thanks for the instructions (and I love that you created it as a walk-thru using Rise)!

I actually worked with Math Notermans (from Sweden!) to get it working.  And using his steps, I created my own "How To" document which I'm attaching here for anyone who needs it.  I haven't compared it to your steps yet to see if they're the same, but my course is up and running! :-) WOOT!

Oh - and mine is published to an LMS and it DOES work on a mobile device! 

Sablaya Mayo

Hello

I am developing a course for a client and she asks me to sound a LOOP throughout the course, except for the first slide and it is an intro and has its own sound and the last slide has its own sound ... now, the file. what he gave me is a 7-second mp3 and he wants the whole course to be repeated ... and that within the course there is a button to pause / play music since it is independent from the voice of a narrator that sounds on each slide.

Sample
http://davidhl7.com/pub/fge/v0.1/story_html5.html

Sablaya Mayo

Hello

I am developing a course for a client and she asks me to sound a LOOP throughout the course, except for the first slide and it is an intro and has its own sound and the last slide has its own sound ... now, the file. what he gave me is a 7-second mp3 and he wants the whole course to be repeated ... and that within the course there is a button to pause / play music since it is independent from the voice of a narrator that sounds on each slide.

Sample
http://davidhl7.com/pub/fge/v0.1/story_html5.html

OWEN HOLT

When you say "it doesn't work", could you be more specific? There are multiple solutions in this thread so it would be helpful to know which one you tried. Also, which version of I.E. are your learners most likely using? Additionally, which version of StoryLine are you using?  Did you try the instructions here: https://rise.articulate.com/share/HO9-VvSOZZdjXn5Ga0-a-BFDcYZQYcbr ?

OWEN HOLT

Are you trying to replicate this exact sample? There is a LOT of custom work modifying the player. If this is one of the client's samples, the best place to start would be with the .story file and the published output. Chances are, there is a custom CSS document or post publish customizations made to the generated css documents.