# Sounds (scripting commands)

- [addMusicEventHandler](../../commands/addMusicEventHandler.md): Adds playMusic event handler. Returns id of the handler or -1 when failed. Like addMissionEventHandler, the music event handler is attached to the mission. See Arma 3: Event Handlers#Music Event Handlers.
- [allEnv3DSoundSources](../../commands/allEnv3DSoundSources.md): Returns all environmental 3D sound sources (Objects) like trees and houses in camera vicinity.
- [commandChat](../../commands/commandChat.md): Types text to the command radio channel. The text will be visible only on the PC where command was executed. If you need the message to show on all computers, you have to execute it globally (see remoteExec).
- [commandRadio](../../commands/commandRadio.md): Sends the audio message to the command radio channel. The message is defined in CfgRadio in the description.ext file or config radio protocol. The transmission will play only on the PC where command was executed.
- [createSoundSource](../../commands/createSoundSource.md): Creates a sound source of the given type (type is the name of the subclass of CfgVehicles which is pointing to the sound defined in CfgSFX).
- [createSoundSourceLocal](../../commands/createSoundSourceLocal.md): Same as createSoundSource but with local effect - the created sound is not transferred to other clients.
- [customRadio](../../commands/customRadio.md): Sends the message to the custom radio channel. The message is defined in the description.ext file or radio protocol.
- [directSay](../../commands/directSay.md): Sends given audio message to the direct channel. Command operates just like xxxxRadio commands, but the sound is played over direct channel and is independent of fadeSound.
- [enableAudioFeature](../../commands/enableAudioFeature.md): Get the state of or enable/disable an audio feature. Available features are `"lowpass"` and `"building_interior"`. - Arma 3 v2.14 it is possible to enable `"building_interior"` on an object placed in a building.
- [enableEnvironment](../../commands/enableEnvironment.md): Enable/disable environmental effects: ambient life and/or ambient sound.
- [enableRadio](../../commands/enableRadio.md): Enable and disable radio messages to be heard and shown in the left lower corner of the screen - the order-giving unit can still be heard direct-talking when in its vicinity. The AI will still follow orders.
- [enableSentences](../../commands/enableSentences.md): Enables radio transmissions to be heard and seen on screen. It does not affect KBTell conversations.
- [environmentEnabled](../../commands/environmentEnabled.md): Returns status of enableEnvironment command
- [environmentVolume](../../commands/environmentVolume.md): Returns the current environment volume (set by fadeEnvironment)
- [fadeEnvironment](../../commands/fadeEnvironment.md): Changes the master environment volume smoothly within the given time and is different from enableEnvironment global mute option. The default volume is 1.
- [fadeMusic](../../commands/fadeMusic.md): Changes the current music volume to the given value smoothly within the given time.
- [fadeRadio](../../commands/fadeRadio.md): Changes the radio volume smoothly within the given time.
- [fadeSound](../../commands/fadeSound.md): Changes the sound volume smoothly within the given time.
- [fadeSpeech](../../commands/fadeSpeech.md): Changes the master speech volume smoothly within the given time. The default volume is 1.0.
- [getAllEnv3DSoundControllers](../../commands/getAllEnv3DSoundControllers.md): Returns an array containing the names and values of environmental 3D sound controllers, variables that can be used in simple expressions when configuring sounds.
- [getAllEnvSoundControllers](../../commands/getAllEnvSoundControllers.md): Returns an array containing the names and values of environmental 2D sound controllers, variables that can be used in simple expressions when configuring sounds.
- [getAllSoundControllers](../../commands/getAllSoundControllers.md): Returns an array containing names and values of the sound controllers that can be used in simple expressions when configuring sounds.
- [getAudioOptionVolumes](../../commands/getAudioOptionVolumes.md): Returns profile audio volumes.
- [getCustomSoundController](../../commands/getCustomSoundController.md): Returns current value set to the controller (see setCustomSoundController).
- [getCustomSoundControllerCount](../../commands/getCustomSoundControllerCount.md): Returns current number of custom sound controllers supported by the engine for the given vehicle (currently 32)
- [getEnv3DSoundController](../../commands/getEnv3DSoundController.md): Returns value of the specified 3D controller, see getAllEnv3DSoundControllers.
- [getEnvSoundController](../../commands/getEnvSoundController.md): Returns value of the specified controller, see getAllEnvSoundControllers
- [getMusicPlayedTime](../../commands/getMusicPlayedTime.md): Returns elapsed time in seconds for currently playing music track.
- [getSoundController](../../commands/getSoundController.md): Returns value of the given sound controller.
- [getSoundControllerResult](../../commands/getSoundControllerResult.md): Returns the calculated value of simple expression defined in config. Config could be any config entry, even mission config entry. It is more important that the vehicle is a transport and not any object.
- [globalRadio](../../commands/globalRadio.md): Sends the audio message to the global radio channel. The message is defined in CfgRadio in the description.ext file or config radio protocol. The transmission will play only on the PC where command was executed.
- [groupRadio](../../commands/groupRadio.md): Sends the audio message to the group radio channel. The message is defined in CfgRadio in the description.ext file or config radio protocol.
- [musicVolume](../../commands/musicVolume.md): Returns the current music volume (set by fadeMusic)
- [onBriefingGroup](../../commands/onBriefingGroup.md): Select a sound declared in the Description.ext of the mission to be played the first time the Group tab is selected in the briefing.
- [onBriefingNotes](../../commands/onBriefingNotes.md): Select a sound declared in the Description.ext of the mission to be played the first time the Notes tab is selected in the briefing.
- [onBriefingPlan](../../commands/onBriefingPlan.md): Select a sound declared in the Description.ext of the mission to be played the first time the Plan tab is selected in the briefing.
- [onBriefingTeamSwitch](../../commands/onBriefingTeamSwitch.md): Select a sound defined in the CfgSounds of the mission to be played the first time the TeamSwitch tab is selected in the briefing.
- [pitch](../../commands/pitch.md): Returns the pitch of a persons voice.
- [playMusic](../../commands/playMusic.md): Plays music defined in Description.ext's CfgMusic or config.cpp. If the *musicName* could not be found a message is logged into the .rpt file: `Music <*musicName*> not found`.
- [playSound](../../commands/playSound.md): Plays a sound from CfgSounds. Sound can be defined in missionConfigFile, configFile or campaignConfigFile.
- [playSound3D](../../commands/playSound3D.md): Plays positional sound with given *filename* on every computer on network. To stop the sound use stopSound
- [playSoundUI](../../commands/playSoundUI.md): Plays given CfgSounds sound or a sound file given by file path through a dedicated UI sound channel unaffected by the global mixer volumes. If the file path is given, the leading slash will be ignored.
- [preloadSound](../../commands/preloadSound.md): Makes sure that a sound can start playing without any delay once it is needed. Command works in Arma 3 but might not be implemented in earlier Arma installments.
- [radioVolume](../../commands/radioVolume.md): Returns the current radio volume (set by fadeRadio).
- [removeAllMusicEventHandlers](../../commands/removeAllMusicEventHandlers.md): Removes all music track event handlers of given type.
- [removeMusicEventHandler](../../commands/removeMusicEventHandler.md): Removes specified music track event handler. See Arma 3: Event Handlers#Music Event Handlers.
- [say](../../commands/say.md): Make unit say given sound. The sound is defined in CfgSounds. If the unit is a person, it will also perform the corresponding lipsync effect provided an appropriate .lip file has been created for this sound.
- [say2D](../../commands/say2D.md): Plays given sound in 2D.
- [say3D](../../commands/say3D.md): Lets an object say given sound in 3D space. This allows broadcasting of positional music or sound from a source, without having to script a fade sound or music command. The source has to be alive.
- [setCustomSoundController](../../commands/setCustomSoundController.md): Sets value of the specified custom sound controller to be used in simple expressions in config.
- [setMusicEffect](../../commands/setMusicEffect.md): Defines a music track played on activation. If another track is playing already, this will stop it and start the new track.
- [setMusicEventHandler](../../commands/setMusicEventHandler.md) **[deprecated]**: Sets given music track event handler. Will overwrite other music event handlers.
- [setPitch](../../commands/setPitch.md): Sets the pitch of a persons voice.
- [setSoundEffect](../../commands/setSoundEffect.md): Defines the different sound effects for a trigger or a waypoint. To stop any sound, deactivate the trigger (might take up to 0.5 seconds to stop) or delete the trigger/waypoint (immediate).
- [setSpeaker](../../commands/setSpeaker.md): Sets the speaker of a person.
- [sideRadio](../../commands/sideRadio.md): Sends the audio message to the side radio channel. The message is defined in CfgRadio in the description.ext file or config radio protocol. The transmission will play only on the PC where command was executed.
- [soundParams](../../commands/soundParams.md): Returns various params for the given sound. The sound has to be playing otherwise command returns empty array [].
- [soundVolume](../../commands/soundVolume.md): Returns the current sound volume (set by fadeSound).
- [speaker](../../commands/speaker.md): Returns the speaker class name of a unit.
- [speechVolume](../../commands/speechVolume.md): Returns the current speech volume (set by fadeSpeech)
- [stopSound](../../commands/stopSound.md): Terminates the given sound. If sound object provided, such as say3D and there is .lip file playback attached, this playback will also terminate.
- [vehicleRadio](../../commands/vehicleRadio.md): Sends the audio message to the vehicle radio channel. The message is defined in CfgRadio in the description.ext file or config radio protocol. The transmission will play only on the PC where command was executed.
