Forum Discussion
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!
Hello, Everyone! ✨
I'm happy to share that we have released a new update for Storyline 360 (Build 3.79.30834.0).
In this update, we have an enhancement where:
- Background audio is now supported in the published video output.
As a first step, I recommend updating Storyline 360 to the latest version. Here's how:
If you have any questions, please let us know in this thread or privately in a support case.
Have a great day!
This has been a popular one Anna :) Glad it was able to assist you as well and welcome to E-Learning Heroes!
- lauraaboud-2b88Community Member
Wondering how to add the code in HTML and .mp3 file when publishing from Storyline 360 to manually upload to Articulate Online. I have the publish settings ready in SL360, but when I try to open the HTML file I get nonsense, and Word won't even open the SL1 file. There is also no folder or anywhere to drop the .mp3 for upload... any help?
- EmilyBurnettCommunity Member
Hi Laura,
Are you using the method described here for modifying the output for Articulate Online? I have tested Articulate Online with this from Storyline 2, and was able to get it to work. I have not tried in 360 yet, but I will let you know as soon as I can. Once you extract the folder from the method above, you should be able to open it with Notepad.
i will check back in once I play around with Storyline 360.
- lauraaboud-2b88Community Member
Thanks so much Emily! I am trying to upload to Articulate Online manually, and the first barrier I find is that the output is a single .SL1 file which I can't open. I'm also guessing I need to upload the .mp3, but don't see how that's possible!
Again, I really appreciate your taking the time to look at this!
Laura
Sent from my iPhone
- EmilyBurnettCommunity Member
Hi Laura,
You will need to extract the sl1 files before being able to make any changes. You can watch the video in the link I shared above on how to do this.
However, I did just test this in 360, and using web publish and AO publish, it is not working the same. I will try and play around for a bit to see if I can get something to work. This was just a cool trick I stumbled upon, so hopefully I can find a way to make it work in 360 :)
- CAllumBatemanCommunity Member
Hi Emily
Thanks for the trick! I have a question in response to your earlier post below:
"This method should work with LMS in the same way. You should not need to add anything to the index.lms. Just add it to the story.html file. I just ran mine through SCORM Cloud to check, and it worked the same."
I'm trying to get a background audio track to play with the LMS output but can't get it to work. It works with the web output and also when I play the html5 file on my computer but as soon as I upload to scorm cloud or our LMS it no longer picks up the mp3 audio file. Do you have any suggestions as to why that might be?
I have zipped the whole file and stored the mp3 in that file as well.
Thanks!
Hey Callum - As Emily mentioned above, it was a cool trick that she found and not something we support nor is it a feature of Storyline. Hopefully someone will be able to chime in and assist here and I wanted to link to your similar thread for anyone following along in case you get assistance there as well.
- brucefrenchCommunity Member
Does anyone know if it's possible to control the audio levels? As in fade out the music when a video starts and fade it back in after.
- BelleWhittin294Community Member
Emily, thank you for this article. :-)
I've spent quite a lot of time trying this trick. But with no luck. I published my project as Web output. I want to use this on my website to promote business.
This is what I've added as the code in Notepad and I've saved it as Unicode (is that correct?):
</div>
<audio src="bensound-anewbeginning.mp3" preload="auto" autoplay loop></audio>
</body>
</html>Can someone offer advice? I so want this to work.
View the project here for reference.
Help, please!
- BelleWhittin294Community Member
Matthew,
Do you add that code before </html> and after <body>? I can't get it to work :-(
- SCOTTSARECommunity Member
A few things you always need to check, double-check, then check again. This is just a start, hope it helps.
- Is the file name and format in the code the same as the actual audio file?
- Is the audio file in the same folder (location) as the *.html file? If in a different folder or directory then your code needs to point to that location.
- If viewing in a browser did you refresh your screen before testing?
- Are you in "preview" mode or are you viewing your work in production? Some elements will not work in preview.