Skip to content

Duck the music during narration

Updated

While a narration track plays, a tween lowers the music to 0.2 of its volume, and brings it back to 0.8 when the narration ends or stops.

Click once to let the browser start the sound. Then press Narrate: the music dips while the narration (a rain recording here) plays, and comes back after it.

Duck the music during narration

The script is explained step by step in Duck the music during narration.

Download the project file below, then import it in XR Hub with Projects › New › Import, as described in Projects and templates. It opens in XR Creator with the same scene you see running above, each script already attached to its Behavior entity. From there you can edit the scripts, adjust components and their props, preview your changes, and deploy the result as a world of your own.

MusicDucking.xrproj