Skip to content

Sound Library ​

The audio library is every sound file of the game: music, ambience, voices, footsteps, the sounds of abilities and objects. Audio > Sound Library lists them by category, plays them so you can listen, and helps you add and sort them.

Sounds are .wav, .ogg or .mp3 files under res://src/data/audio/. The folder is the organisation: a category folder, then (usually) a type folder inside it named for what the sound is. The game asks for "a sound of this category and type" and picks one of the files in that folder at random, so putting several files in a folder gives variety for free.

Where the files go ​

One rule: every sound of the game is a file in the library, src/data/audio/. The editors only offer what the library holds (a track window, a sound selection), so a sound that lives somewhere else in the project cannot be chosen from a list.

There are three ways to put a file there, all with the same result:

  • Import in this tab: pick files from anywhere on your computer; they are copied into the folder you chose.
  • Import files... in the track window, wherever you choose music or an ambient sound: it copies into the folder the window is showing, and the new files are selected, so you can add a track without leaving the album you are editing.
  • Copy the files into the folder yourself (or drag them in the Godot FileSystem dock), then press Refresh.

An imported file is a normal Godot file: it needs a moment to be imported by Godot before you can listen to it. Dynamic Music needs Ogg or MP3; use those for music. The guides walk through importing, and Choosing file types says which format suits which sound.

Categories ​

CategoryFolderInsideUsed by
Musicmusic/loop/ and non_loop/Music Albums, and the music of worlds, zones, weather, encounters, events and the menus
Atmospheric ambienceatmospheric_ambience/loop/ and non_loop/The ambient sound of worlds, zones, weather and shelters. 2D background sounds: rain, wind, birds
UI SFXui_sfx/One folder for each interface soundButtons, windows, item moves
Entity voicesentity_voices/<entity type>/<voice variant>/<call>/Grunts, yells and reactions in combat; the voice of an NPC or character. Lined up with the calls of the game in Entity Voices
Voicelinesvoicelines/One folder for each character; a folder of a language inside it for the recordings in that languageSpoken lines in conversations, speak interactions, quests and events. See voice lines in other languages
Motionmotion/<entity type>/<surface>/<movement>/Footsteps and movement sounds, by the ground the entity walks on and how it moves
Castingcasting/A folder for each soundThe wind-up of a cast
Castcast/A folder for each soundThe release of a spell
Shootshoot/A folder for each soundFiring a projectile
Impactimpact/A folder for each soundHits and impacts
Status effectsstatus_effects/A folder for each soundA buff or a debuff being applied
Looploop/The files themselvesLooping ability sounds
Environmentalenvironmental/A folder for each sound3D sounds of the world: a waterfall, a fire, a mechanism
Interactablesinteractables/A folder for each soundDoors, chests, switches
Spawnsspawns/The files themselvesThe sound of something appearing

The loop and non_loop folders are a way to sort your files: whether a track repeats is decided where it is used (the Loop setting of a sound source), not by the folder. The editor asks which one when you import music or ambience.

Choose sounds in the editors with a sound selection: a category, a type, and optionally one particular file.

The editor ​

ControlWhat it does
The treeThe categories, each with its types and files, with counts
Search, RefreshFilter; read the folders again
ImportCopy audio files in, from anywhere on your computer. For a category with types, it asks for a new folder name and imports into it; for music and ambience it asks for loop or non-loop. A file the folder has already is not copied again
Settings > Add a sound folder...Makes a new type folder in a category (fire, ice), see Adding a sound folder
Settings > Validate DatabaseChecks every file and lists the ones that cannot be read
Play, Pause, Stop and the time barListen to the selected file
The labelThe selected file and its category

Sounds of an entity ​

  • Voice. An NPC, character or class has a voice: an entity type and a variant. Choose it in the editor (NPCs, Audio). The game plays files from entity_voices/<type>/<variant>/<action>/ when the entity attacks, is hurt, dies, and so on.
  • Footsteps. The same entity type is used for motion/: when it walks, the game looks for a file for the surface it stands on (stone, grass, wood) and the movement (walk, run). A world's terrain provider tells it the surface; on the toolkit's own terrain it is the surface type of the terrain texture the entity stands on, so name the folders like your surface types (grass, rock, sand, snow). The game times the steps by the distance walked (see Footsteps); an animation can call for a step itself instead. A movement volume can say what the ground sounds like inside it (shallow water, mud), and swimming makes swim sounds.

Choosing a track in the editor ​

Wherever the editor asks for music or an ambient sound, the + (or ...) button opens the same track window of the library: the tracks of a Music Album, the Set Music Track and Set Ambience Track event actions, the Music and Ambient sound of a zone, a weather, the weather sounds of a shelter and the menu music. It shows the music or the ambient sounds (loop and non-loop), you listen to a file with Preview, and the files you choose are added.

Import files... in the window copies sound files into the folder it shows (the Category and Type at the top) and selects them, so a new track is two clicks. A file outside the library can still be typed in the line next to the button, but it is not offered in the window and the editor does not know it.

Interface sounds ​

The ui_sfx category holds the sounds of the interface. The game looks for them by name: click, hover, confirm, cancel, error_click, panel, navigation, tab_switch, window_open, window_close, loot, purchase_sell_item, inventory_move, equip_item, quest_complete, quest_failed, game_over, character_select, level_up, notification, and the item, crafting and map sounds: item_drop, item_use, money, craft_complete, item_break, item_repair, map_open, map_close, journal_update, achievement, cant_do. The item and crafting sounds are interface sounds, not a separate kind. In the tree of the Audio tab the names the game knows that have no folder yet are listed greyed, (no sound yet): create the folder and import files into it.

An event can play any of them with Play SFX Global (choose the Interface sound type of sound effect and the name). The interface itself plays them as it is built (the UI work).

Adding a sound folder ​

Settings > Add a sound folder... (the tools button of the Audio tab) asks what the sound is for (music and ambience, interface, characters, abilities, world), then the kind of sound, and says in plain words what the folder name is used for ("the kind of casting sound, chosen in the Casting sound of an ability"). It lists the folders there already, offers for the interface sounds the names the game knows that have none yet, and shows the folder it will make. A name is lower case letters, numbers and underscores. Music, ambience, footsteps, voices and dialogue are not in the list: their folders are made when you Import (and loops and spawns are only files).

Playing sounds ​

Sounds are played by pooled audio players (50 positional, 20 global, 5 for the interface): see Pooling. When none is free the sound is skipped.

See also ​