Add Your Audio¶
Once you’ve created music or ambient sounds for your domain, you need to add the sound and its assets to the Marketplace. To sell audio on the marketplace, you will need the following assets:
- WAV or MP3 file
- Script file (sound emitter script)
- FBX file (for the entity to which you will attach the sound emitter script)
- JSON file
On This Page
- Prepare Your Entity’s FBX File
- Prepare Your Script File
- Add Your Assets
- Generate the JSON File for Your Entity
- Upload Your Entity’s JSON File
Prepare Your Script File¶
- In Interface, pull up your HUD or Tablet and go to Create.
- Click on the entity you previously created to edit its properties.
- In the ‘Properties’ tab, scroll down to ‘Script’ and your script’s path or URL.
- Test your script file to see if your audio plays in High Fidelity.
If you don’t have a sound emitter script, you can create one by modifying this sample: soundLoopEmitter.js.
Add Your Assets¶
If your model could be re-imported without any issues, it is now ready to be uploaded to High Fidelity.
- Go to https://highfidelity.com/marketplace/items/new to create a new item. If you’re not logged in, you will be prompted to do so.
- Enter your audio’s name and select your category as ‘Audio’. You can add the metadata now or later.
- Click ‘Save Draft’.
- Scroll down to the ‘Assets’ section.
- Click ‘Choose Folder’ and navigate to where your 3D model and audio file have been saved on your computer. Upload all related folders, including your FBX file and script file (in the scripts folder).
- Click your uploaded FBX file and copy the new Marketplace URL for the FBX file.
Upload Your Item’s JSON File¶
- In High Fidelity, verify that your model looks correct. Open the Create Tools app, then click ‘Import Entities (.JSON)’ and navigate to your model’s JSON file.
- Go to https://highfidelity.com/marketplace. If you’re not logged in, you will be prompted to do so.
- Click on your user name, then on ‘My Items’.
- Locate your Audio in Draft mode and click on it.
- Click ‘Edit’.
- In the ‘Assets’ section, click ‘Choose Files’ and navigate to where your model’s JSON file is saved on your computer. Select your JSON file, click ‘Open’ and wait for it to upload.
- Click the JSON file as your root file in the Asset Viewer.
- Save your submission.