The Audio Player feature allows you to import audio files to an effect. You can control the volume as well as the play mode (single play or multiple loops). You can also pin the Audio Player as a visual scripting node. This will enable you to control the play status by connecting to the Audio Player Controller in real time.
This guide will walk you through how to add an Audio Player, customize the Audio Player settings, as well as how to control Audio Player as a visual scripting node.
Audio file: Click this property to choose an audio file from the asset picker window.
Play mode: Click the dropdown menu to select between Once, Loop, and Infinite. Selecting Loop will cause a new property Loop Amount to appear.
- Loop Amount: Click this property to designate how many times the loop will play.
Autoplay: Check this box to automatically play the audio file.
Mute: Check this box to mute all audio.
Volume: Move the slider bar or input a value from 0 to 100 to determine the volume of the audio file.
Add an Audio Entity to the Scene
You can add an Audio object by clicking + Add Object > Audio from the Hierarchy panel. You can see the Audio Player component is in the Inspector panel.
Add an Audio Player Component to an Object
You can also add the Audio Player component directly under any object in the Inspector panel by selecting + Add Component > Audio > Audio Player.
Import Audio Assets
Import a MP3 audio asset by selecting +Add asset > Import > From Computer from the Assets panel. You can also drag a MP3 file into the Assets panel directly. You can also preview the audio assets in the Inspector panel.
Only MP3 audio files can be imported. Audio files with 44,100 Hz sampling rates are recommended. Other sample rates will get compressed. Please wait for the audio assets to be successfully imported. If the audio asset has a restriction from the music rights holder, you will receive a red warning icon on the Assets panel. This warning icon means that the audio asset cannot be uploaded to TikTok. Please click retry to upload the audio file if you receive a yellow warning status.
Select the audio file in Audio Player component by clicking Audio file to specify which audio file you want to play.
Select Play mode in Audio Player component to specify how many times you want the audio assets to be played. If you select Loop, you can also adjust the Loop Amount to specify how many loops.
Select Autoplay to play the Audio file instantly.
Adjust the Volume to specify how loud you want the audio assets to be played. You can also choose Mute to mute Audio Player.
Preview Audio Effects
You can play or pause the audio play by clicking the play icon from the Preview panel when you’re under the Media preview mode. You cannot play and pause the audio play after switching to the webCam.
We’re currently not supporting audio recording by using the screen recording feature from the Preview panel
Preview on TikTok
Your audio effect will be recorded from the microphone of your phone, don’t cover your mic if you want to have a high-quality result. And if you wear earphones or headsets, the audio effect cannot be recorded.
If you don’t want to lose the details of your audio effect, don’t check on the Noise Reducer on the top right of the screen
Use VO and TikTok Songs With Audio Effect
If you select a TikTok song before recording, the song will cover all sounds from the video. This includes the microphone speaker and the in-effect sound.
If you select the TikTok song after recording on the editing page, the sound in the video (including the microphone and sound in the effect) can play with the TikTok song together.
Adding a voiceover is totally fine, it won’t affect the embedded sound at all.
Audio player and related audio features will generally not cause any frame rate reductions, but keep in mind that too many audio nodes or audio + segmentations combinations can impact your effect performance.
Types of Audio Nodes
There are two types of audio nodes we provided:
- One is to control audio play.
- One is to detect certain features of Audio that could use as a trigger.
Control Audio Playing
Control the Play, Stop, Pause, Resume, and get on Play, On Stop, On Finish statues of the Audio Player component in the Audio Player Controller node in visual scripting.
Add the Audio Player component that you want to control into the graph by clicking “+”> Get Audio Player, you can see the Audio Player node is in the graph now.
Connect the Audio Player node to the Audio Player Controller node on the graph panel.
You can now control the Audio Player in the graph panel. Here is an example of how to play the audio in loop one time by clicking the screen.
You can also control the Volume in the graph panel by clicking “+” > Set Volume.
There are Audio Resource, Audio Resource Controller, and Speaker nodes in the graph panel under the Audio section. Always connect Speaker to Audio Resource Controller as the audio stream output.