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!
- JillSpealman-97Community Member
Hi Naku.
I did not try on any ios devices.
- OndejKrtkCommunity Member
Hi I have a problem with the JavaScrip solution. I use this code on the first slide:
var audio = new Audio ('podmp3.mp3');
audio.loop = true
audio.play ();everything is OK in IE (I hear the sound)
but it doesn't work in the CHROME.
Any advice?
Thank you
- FredGoodCommunity Member
I thought I saw something about how having audio on the first slide doesn't work? Try adding a slide before the one with the audio?
- MandanaMovahediCommunity Member
Thank you, It was very helpful, easy to do and creative.
- DaveCox-67b3049Community Member
Hi Jill
In HTML, all of the code for the "body" of the page must be placed in between the <body> and </body> html tags. If you are instructed to insert code Before the <body> tag, then you should insert your code before this this tag on the code page. It doesn,t necesarily matter where before, just as long as does come before that tag.
Dave
- DeirdreShermanCommunity Member
I was finally able to get it to work by inserting the code below into both the story.html AND the story_html5.html files. The problem now is that the background music is drowning out the VO. I used this code:
<iframe src="YOURAUDIOHERE.mp3" allow="autoplay" id="audio" style="display:none"></iframe>
Does anyone know of a way to set the volume of the background music?
- JuliusDavidNatiCommunity Member
Hi Deirdre Sherman,
That was my problem too when I tried this trick.
The easiest way for me to do, that time, is to manually edit the background
music.
I just used free software to do it and it worked fine.
I hope this helps.Thanks,
DavidDavid Natividad
Instructional Designer
Pearson People ServicesPearson Management Services Philippines, Inc.
7F North Tower, Rockwell Business Center
Sheridan corner United Street, Mandaluyong City, PH 1552
Mobile Number +63 922 8654739Learn more at pearson.com
[image: Pearson]
- JillSpealman-97Community Member
Hi Deirdre,
You will need to open your audio file with a tool such as Audacity, lower the audio level of the file itself, and then save the new file. I saved a 2-3 files until I got it right.
- JerryBeaucaireCommunity Member
I second Todd's suggestion. BG audio in the base layer playing in a loop and individual narration audio in each layer on top makes for a seamless and professional result.
- OwenHoltSuper Hero
If you use the JavaScript solution discussed multiple times in this thread, there is no need to edit the html by hand each time you publish.... and you can have full control over the volume.
- JerryBeaucaireCommunity Member
For me, the need to use layers for a consistent BG music track doesn't actually continue to the quiz, I like for the audio to change when something really different is onscreen. So the quiz at the end of a layered scene could be on a slide of it's own with its own special "thinking" music background.
After the quiz/knowledge check is over, we start the next layered scene.
- EdwardJassin-54Community Member
Hi All, If I am using the below JavaScript to play an audio file for background music, what would I need to do to make sure it loops continuously?
Using SL360...not working when I edit code <audio src="YOURAUDIOHERE.mp3" preload="auto" autoplay loop>
var audio = new Audio('jazz1.mp3');
audio.play();