Add some sound to the scene to bring it alive.
...
Step 1: Create an "Ambience" Script
Click on the Script icon.
Click on your script catalog.
Click on "Add New Script".
Name the script "Ambience".
Click on the checkmark to save the script.
Close the edit section by clicking the x button.
Collapse the script catalog by using the ">" icon.
Click on the Ambience script to open it on your screen.
...
:
...
Step 2: Add Scene Objects
If your users learners will be interacting with objects in the scene, you need to add those objects to the script. In this script, we are going to be adding some music playing on a speaker, so we need to add the speaker object to the script.
As usual, we will ensure we are in the correct script by looking to see it is the active script:
...
...
Open the catalog drawer by clicking on the folder icon on the far right:
...
Open the "Workshop Objects" catalog.
Find the "Speaker" object and drag it Click the Catalog Icon
Open the Workshop Objects catalog.
Drag and Drop the Speaker into the first frame of the script.
Use the “>” > icon to collapse the menu.
Rename the frame "Scene Objects". Objects
Click outside of the text box to save the changes
Save:
...
Step 3: Add Background Sound
Click the ' +' on the main frame to create a new frame at the top level:
...
Open the Media Catalog by clicking on the media icon on the far right:
...
Click on "Workshop Music". In this area, (you can preview the audio files by clicking on the play button. Select )
Drag and Drop one of the music types and drag it songs into the new frame.
...
Click on the ">" icon Resource area
Click > to collapse the music catalog.We want this background noise :
...
Select Loop to continue music throughout the scenario, so check the "loop" option.
Select the "Ambient" track. This means that this sound is the lowest priority if there are several sounds playing at once.
...
Save the Script.
Re-name the frame with the music “Background Sound”. Background Sound
Before you test you need to launch this "Ambience" script from the Director Script:
Open the Director Script.
Create a new top-level frame and name it "Ambience".
Drag and drop the Ambience script from the script catalog into the frame.
Save.
...
Note that the welcome message and the ambient music will start at the same time - when you launch the experience.
STOP: Save and Test. Play the scenario now. You will notice that the background sound is playing. It is too loud. We will adjust this in the next step.
...
Open your Ambience script.
Open the "Background Sound” frame.
Adjust the volume until it seems right to you. In this tutorial we have set it to 0.1:
...
STOP: Save and Test. The sound should now be quieter.
...
In the “Speaker Music” frame, choose "Speaker" from the anchor dropdown on the resource.
Loop the track so that it plays continuously.
Choose the "Ambient" track so that it has the lowest priority of sounds.
...
STOP: Save and Test. You should now hear the ambient background noise and the sound coming from the speaker on the workshop floor. You might also want to adjust the volume once you've tested it.
...
In the Ambience script, click on the "Background Sound" frame.
Change the Volume to 0.
Save the script.
...
STOP: Save and Test. You should now hear only the sound coming from the speaker on the workshop floor.
...
Training Notes
Key Takeaways from Tutorial 2
If users learners will be interacting with objects in the scene, you need to add those objects to a script via the Catalog.
Always test audio files to ensure optimal sound levels.
Any audio on Ambient Track will have the lowest priority if there are several sounds playing at once.
When you anchor sounds to an object the sound will change based on your location in the scene.
Within the VR scene, use the green arrows to move around.
...