Half-Life: Alyx Workshop Tools/Level Design/Sound
Custom Sounds
Custom sounds can be added to your maps by adding .wav or .mp3 files to `content/hlvr_addons/<addon name>/sounds/`.
When a sound file is added to that directory, the Workshop Tools will automatically convert them into .vsnd files.
Sound Events
If you want sounds to play from scripts or triggers, you must use sound events.
As an example, add a `point_soundevent` entity to your map. In the Object Properties panel, look for the Sound Event Name property. Use the picker to browse through the list of available sound events.
To use your own custom sound events, start by creating a directory in your addon named `soundevents`. Within it, create a file named `soundevents_addon.vsndevts`.
The parameters are mostly the same as described in the SteamVR tutorial, however, the types allowed are different.
For a 3D sound source, you would write `type = "src1_3d"`.
Once you save the sound event file, go back to the Asset Browser to recompile it.
You'll know if you've set up your resource file correctly if you can find it in the Sound Event Picker for the Sound Event Name Property.