Sound (Content Creation)
This page is a stub with incomplete information.
Opensimulator: Content Creators: Sound
Sounds clips can be used within (scripted) objects and as part of gestures.
Currently OpenSimulator supports sound files in PCM WAVE (.wav) 16-bit/44.1KHz/mono or stereo format. The maximum length is 10.00 seconds although it's generally recommended to keep them a fraction shorter.
Script functions
The yEngine, the script engine used by recent version of Opensimulator, supports all sound related LSL functions as well as several OSSL functions unique to opensim. Some of the OSSL function are duplicates of the similarly named LSL ones, the others add a link parameter but are other wise identical to the corresponding LSL ones.
The earlier xEngine may not support all opensim specific functions. A list of all sound related functions, sorted alphabetically, ignoring the prefix. Duplicate functions are listed on the same line. Links to LSL functions (with the prefix ll) lead to Second Life's LSL wiki, links to unique OSSL functions (with the prefix os) to pages on this wiki:
- llAdjustSoundVolume
- llCollisionSound / osCollisionSound
- llLinkAdjustSoundVolume / osAdjustSoundVolume
- llLinkPlaySound
- llLoopSound
- osLoopSound
- llLoopSoundMaster
- osLoopSoundMaster
- llLoopSoundSlave
- osLoopSoundSlave
- llPlaySound
- osPlaySound
- llPlaySoundSlave
- osPlaySoundSlave
- llPreloadSound
- osPreloadSound
- llSetSoundQueueing
- llSetSoundRadius
- llLinkSetSoundRadius / osSetSoundRadius
- llSound (depreceated)
- llSoundPreload (depreceated)
- llStopSound
- llLinkStopSound
- osStopSound
- llTriggerSound
- osTriggerSound
- LlTriggerSoundLimited
- osTriggerSoundLimited
Names, UUIDs and storage
A script can call a sound by name or UUID. If it's called by name, the sound file has to be stored in the object along with the script. This is not necessary if it's called by UUID but it's still usually recommended due to the potential issues of retrieving assets from a different grid.
Client sounds
These are mainly the default alert sounds used by the viewers. There is a list of the ones used by second life at https://wiki.secondlife.com/wiki/Client_sounds. Some of these are also available on opensim but not all of them so test them before you use them.
Links
Tools
Audacity
- Link: http://audacity.sourceforge.net/ Audacity
- OS: Windows, MacOS, Linux and others
Audacity® is free, open source software for recording and editing sounds. It is available for Mac OS X, Microsoft Windows, GNU/Linux, and other operating systems.
LMMS
- Link: http://lmms.io/ LMMS
- OS: Windows, MacOS, Linux and others
Compose sound and music on Windows, Linux and OS X.
Content Libraries
OpenGameArt
- Link: http://opengameart.org/
- Content: Objects, Textures, Sounds, Music
- License: Various
An exceptional repository of permissively licensed content for game creation.
The Freesound Project
- Link: https://freesound.org/ (confirmed 2023-05-30)
The Freesound Project is a collaborative database of Creative Commons licensed sounds.