Skip to content

Audio

69 tools for sound cues, MetaSounds, sound classes, mixes and submixes with their effects, attenuation, concurrency, modulation, audio buses, dialogue and subtitles, and playing sounds.

Back to the index.

add_bus_to_mix

Additive

Adds a USoundControlBus to a USoundControlBusMix asset as a new stage whose target value is default_value, and saves the mix. A bus already in the mix is left unchanged (already_in_mix true, not saved); edit a stage with set_control_bus_mix_stage_value. Returns mix_path, bus_path, bus_count, added, saved.

Parameter Type Required Description
mix_path string yes Asset path to the USoundControlBusMix
bus_path string yes Asset path to the USoundControlBus
default_value number no Target value for the new mix stage (default 1.0)

Returns: { mix_path, bus_path, bus_count, added, already_in_mix, saved, default_value }

add_metasound_graph_input

Additive

Add a graph input of data_type (default Float) to an existing MetaSound Source through the MetaSound builder, inside an undo transaction, then save the asset. Optionally bakes a typed default into the new input; give at most one of default_value, int_value, bool_value or string_value (bool_value wins, then int_value, string_value, default_value). An unregistered data_type or a source that does not load is an error, and so is a default of the wrong JSON type or one data_type takes no literal of, with nothing written. A name already used by an input is left untouched: with the same data_type the call succeeds with added=false and already_exists=true, saves nothing and does not apply a supplied default (note says so; use set_metasound_graph_input_default); with another data_type it is an error. success is false, with save_error, when the save fails (during PIE, for one). Inverse: remove_metasound_graph_input.

Parameter Type Required Description
metasound_path string yes Asset path of the MetaSound Source, as a package path like "/Game/MetaSounds/MS_Example" or an object path like "/Game/MetaSounds/MS_Example.MS_Example"
input_name string yes Name of the graph input node to add.
data_type string no Frontend data type: "Float", "Int32", "Bool", "String", "Audio", "Trigger" (optional, default "Float")
default_value number no Float default baked into the literal, a JSON number (optional)
int_value integer no Int32 default baked into the literal, a whole JSON number (optional, mutually exclusive with other defaults)
bool_value boolean no Bool default baked into the literal, JSON true or false (optional, mutually exclusive with other defaults)
string_value string no String default baked into the literal, a JSON string (optional, mutually exclusive with other defaults)

Returns: { asset_path: string, input_name: string, data_type: string, added: bool, already_exists?: bool, has_default: bool, note?: string, saved: bool, save_error: string? }

add_metasound_graph_output

Additive

Add a graph output of data_type (default Audio; others include Float, Int32, Bool, String and Trigger) to an existing MetaSound Source through the MetaSound builder, inside an undo transaction, then save the asset. An unregistered data_type or a source that does not load is an error. A name already used by an output is left untouched: with the same data_type the call succeeds with added=false and already_exists=true and saves nothing; with another data_type it is an error. success is false, with save_error, when the save fails (during PIE, for one). Inverse: remove_metasound_graph_output.

Parameter Type Required Description
metasound_path string yes Asset path of the MetaSound Source.
output_name string yes Name of the graph output node to add.
data_type string no Frontend data type for the output node (optional, default "Audio")

Returns: { asset_path: string, output_name: string, data_type: string, added: bool, already_exists?: bool, saved: bool, save_error: string? }

add_metasound_interface

Additive

Adds a registered interface to an existing MetaSound Source's graph. Obtains a builder for the saved asset via the editor subsystem's FindOrBeginBuilding (the reliable headless path), validates the interface via IsInterfaceRegistered, then calls UMetaSoundBuilderBase::AddInterface (which adds the interface's input/output nodes). The asset is saved after the edit. Inverse: remove_metasound_interface.

Parameter Type Required Description
metasound_path string yes Asset path of the MetaSound Source (e.g. "/Game/MetaSounds/MS_Example" or fully-qualified ".MS_Example").
interface_name string yes Name of a registered MetaSound interface to add (required)

Returns: { asset_path: string, node_kind: string, interface_name: string, added: bool, saved: bool }

add_modulation_input_to_patch

Additive Idempotent

Add a control bus as an input of a sound modulation patch asset, so the patch's output follows that bus, then save the patch. Use it after create_sound_modulation_patch and create_control_bus, which make the two assets; see the inputs with get_sound_modulation_patch_info, take one out with remove_modulation_input_from_patch, and set what the patch drives with set_modulation_patch_output_parameter. Idempotent per bus: a bus whose asset name is already an input is not added again (added false, already_present true) and nothing is saved. A patch or bus path that does not load is an error and nothing changes. One undo step that removes the input again; a failed save answers success false with the change kept in memory.

Parameter Type Required Description
patch_path string yes Asset path of the sound modulation patch, e.g. "/Game/Audio/Mod/SMP_Ducking", as create_sound_modulation_patch returns it.
bus_path string yes Asset path of the control bus to add, e.g. "/Game/Audio/Mod/CB_Music", as create_control_bus returns it.
input_name string no Ignored: the engine input struct has no name field, so the value is only written to the log (default empty)

Returns: { patch_path, bus_path, input_count, added, already_present, saved }

add_soundfield_effect_to_submix

Additive

Append a new effect of a concrete USoundfieldEffectBase class to a USoundfieldSubmix effect chain and save it; an addition succeeds only when the submix reaches disk. A class already in the chain is skipped (added false, already_present true, not saved). When no concrete subclass is loaded (stock UE 5.8 ships none) nothing changes and the call fails, with added false and a note.

Parameter Type Required Description
submix_path string yes Full path to the USoundfieldSubmix (required).
effect_class_name string yes Full class path of a concrete USoundfieldEffectBase subclass, e.g. "/Script/MyAudioPlugin.MySoundfieldEffect"; it is looked up with no outer, so a bare class name does not resolve

Returns: { submix_path, effect_path, effect_class, chain_length, added, already_present, saved, note? }

add_submix_effect_to_chain

Additive

Append one effect preset to the end of a USoundSubmix's effect chain and save the submix. effect_preset_path wins: that existing USoundEffectSubmixPreset asset is appended by reference. Otherwise a new preset of effect_preset_class, or, when neither is given, of a concrete class found by reflection (SubmixEffectDynamicsProcessorPreset when it is loaded), is created inside the submix's own package under a unique <Submix>_Effect name; resolved_from says which of the three ran. Every call appends another entry, duplicates included. A submix or preset that does not load, or a class that is not a concrete preset subclass, is an error; a failed save makes success false with saved=false and save_error. Read the chain with get_submix_effect_chain and tune an entry with set_properties on its preset (its Settings struct); a soundfield submix takes add_soundfield_effect_to_submix. Inverse: remove_submix_effect_from_chain.

Parameter Type Required Description
submix_path string yes Full content path of the target USoundSubmix
effect_preset_path string no Optional existing USoundEffectSubmixPreset asset to append by reference; wins over effect_preset_class
effect_preset_class string no Optional concrete USoundEffectSubmixPreset subclass (short name or path) to instantiate in the submix's package; with neither preset param a class is picked by reflection

Returns: { submix_path: string, effect_name: string, effect_class: string, resolved_from: string, effect_added: bool, chain_length: int, saved: bool, save_error?: string }

add_subtitle_cue

Additive Idempotent

Append one cue (text, start_offset, duration, duration_type, subtitle_type, priority, comment) to the Subtitles list of a USubtitleAssetUserData asset loaded by content path, in one undo step, then save it. Idempotent: a cue equal to it in text, duration_type, duration, start_offset, priority and subtitle_type -- comment is not compared -- is a success with already_existed=true, saved=false and that cue's cue_index, nothing added or saved. Defaults: start_offset 0, duration 3 s, duration_type use_duration_property, subtitle_type subtitle, priority 1. An unknown duration_type or subtitle_type, or an asset that does not load, is an error; so is a failed save, after which the cue is already in memory. Edit a cue (text or timing) with set_subtitle_cue and list them with list_subtitle_cues; the inverse is remove_subtitle_cue. Create the asset with create_subtitles_asset.

Parameter Type Required Description
asset_path string yes Content path of the USubtitleAssetUserData asset.
text string yes The subtitle text (required).
start_offset number no Initial delay in seconds before the subtitle is visible (default 0).
duration number no Display duration in seconds (default 3).
duration_type string no "use_sound_duration" or "use_duration_property" (default "use_duration_property").
subtitle_type string no "subtitle", "closed_caption", or "audio_description" (default "subtitle").
priority number no Subtitle priority; higher values play instead of lower (default 1).
comment string no Editor-only author comment (default "").

Returns: { asset_path: string, cue_index: int, text: string, success: bool, already_existed: bool, cue_count: int, saved: bool, message: string? }

create_audio_bus

Destructive

Creates a UAudioBus asset at package_path/name and saves it, or loads the one already there (already_exists true) and saves it again; another asset class at that path is an error. channels, when given, sets the channel layout, overwriting an existing bus's layout; when omitted a new bus gets Stereo and an existing one keeps its own. An invalid channels value is refused before any asset is created or loaded. Change the layout later with set_audio_bus_channels and read it with get_audio_bus; create_sound_source_bus makes a source bus that plays this bus's audio.

Parameter Type Required Description
name string yes Name of the new Audio Bus asset
package_path string no Target content path, defaults to /Game/Audio
channels string no EAudioBusChannels: 'Mono' | 'Stereo' (default) | 'Quad' | 'FiveDotOne' | 'SevenDotOne'. The default applies to a new bus only.

Returns: { name: string, package_path: string, asset_path: string, asset_class: string, channels: string, channels_int: int, num_channels: int, applied_channels: bool (this call wrote the layout: channels given, or the Stereo default on a new bus), created: bool, already_exists: bool, saved: bool, save_error?: string }

create_control_bus

Additive

Creates a USoundControlBus asset at package_path/bus_name, or loads the one already there, and saves it. initial_value is only echoed back as value, never written to the bus; push a runtime value with set_control_bus_value. Returns bus_path, default_value, created, already_existed, saved.

Parameter Type Required Description
bus_name string yes Name of the control bus (e.g. "Bus_Volume")
package_path string no Target content package path where the asset is created (default /Game/MCP)
initial_value number no Number echoed back as value in the reply; it is not stored on the bus (default 1.0)

Returns: { bus_path, bus_name, value, default_value, created, already_existed, saved }

create_control_bus_mix

Additive

Creates a USoundControlBusMix asset at package_path/mix_name, or loads the one already there, and saves it. A new mix has no stages; add buses with add_bus_to_mix. Returns mix_path, mix_name, bus_count (its stage count), created, saved.

Parameter Type Required Description
mix_name string yes Name of the control bus mix asset
package_path string no Target content package path where the asset is created (default /Game/MCP)

Returns: { mix_path, mix_name, bus_count, created, saved }

create_dialogue_voice

Additive Idempotent

Create a UDialogueVoice asset (idempotent). Populate Gender/Plurality afterwards via set_properties on object_path.

Parameter Type Required Description
name string yes Name of the new DialogueVoice asset
package_path string no Target content path, defaults to /Game/Audio

Returns: { name: string, package_path: string, asset_path: string, object_path: string, asset_class: string, gender: string, plurality: string, already_existed: bool, saved: bool }

create_dialogue_wave

Additive Idempotent

Create a UDialogueWave asset (idempotent). Populate ContextMappings afterwards via set_properties on object_path.

Parameter Type Required Description
name string yes Name of the new DialogueWave asset
package_path string no Target content path, defaults to /Game/Audio

Returns: { name: string, package_path: string, asset_path: string, object_path: string, asset_class: string, context_mapping_count: int, already_existed: bool, saved: bool }

create_metasound_preset

Additive

Creates a MetaSound preset from an existing source or patch asset. Uses UMetaSoundBuilderSubsystem::CreateSourcePresetBuilder (or CreatePatchPresetBuilder) to create a transient preset builder referencing the source, then BuildToAsset to persist it as a new /Game asset. A preset of that type already at the path is returned unchanged with already_exists=true, saved=false and preset_type read from its class, nothing saved; an asset of another class there (a MetaSound of the other type included) is an error and nothing is created.

Parameter Type Required Description
preset_name string yes Name of the new MetaSound preset asset.
source_asset_path string yes Content path of the existing MetaSound source/patch to use as the preset's template.
package_path string no Destination /Game folder (default /Game/MetaSounds).
preset_type string no "source" (default) or "patch".

Returns: { preset_path: string, preset_type: string, success: bool, saved: bool, already_exists: bool, message: string? }

create_metasound_source

Additive Idempotent

Create a UMetaSoundSource asset at package_path/name (default folder /Game/MetaSounds): a one-shot source graph pre-wired with the source interface (OnPlay input, OnFinished output, one audio output per channel), built by the MetaSound builder subsystem and written with BuildToAsset, then saved; no dialog, no undo step. Idempotent: a MetaSound Source already there is returned unchanged with already_exists=true, created=false and saved=false, nothing saved. output_format is mono, stereo, quad, 5.1 or 7.1; anything else is an error and nothing is created. The reply's output_format is read from the source, also for an existing one, whose own format is reported and left as it is. An invalid package name or a failed build is an error; a failed save gives success false with save_error. Next: add_graph_node, add_metasound_interface; inspect: get_metasound_info; inverse: delete_asset.

Parameter Type Required Description
name string yes Name of the MetaSound Source asset to create.
package_path string no Target /Game package path (optional, default "/Game/MetaSounds")
output_format string no Output audio format: "mono", "stereo", "quad", "5.1", or "7.1" (optional, default "mono")

Returns: { source_name: string, asset_path: string, created: bool, already_exists: bool, saved: bool, output_format: string, class_name: string, input_count: number, output_count: number, save_error: string?, message: string? }

create_modulation_generator

Destructive

Creates a modulation generator asset of class LFO, ADEnvelope or EnvelopeFollower at generator_path (or package_path/generator_name), with engine default settings, and saves it; for an LFO it also writes the given waveform, frequency, amplitude, offset and phase (looping on), on a new LFO or overwriting those fields of an existing one. An existing generator with no LFO field given is returned untouched with its own class (not saved). LFO fields with another generator_class or on an existing generator of another class, and an unknown waveform, are errors. Returns generator_path, generator_name, generator_class, settings as stored, created, already_existed, updated, saved. Configure the other classes with set_properties (their Params struct).

Parameter Type Required Description
generator_class string yes Concrete class name (case-insensitive). One of: LFO, ADEnvelope, EnvelopeFollower
generator_path string no Full asset path (e.g. /Game/MyGame/Gen_LFO). Optional when generator_name is given.
generator_name string no Optional asset name, used with package_path when generator_path is absent.
package_path string no Optional folder for generator_name (default /Game/MCP); ignored when generator_path is given.
waveform string no Optional, LFO only: shape, case-insensitive: Sine, UpSaw, DownSaw, Square, Triangle, Exponential, Random (RandomSampleHold). Any other value is an error.
frequency number no Optional, LFO only: frequency in Hz (engine default 1.0).
amplitude number no Optional, LFO only: amplitude (engine default 1.0).
offset number no Optional, LFO only: output offset (engine default 0.0).
phase number no Optional, LFO only: starting phase (engine default 0.0).

Returns: { generator_path, generator_name, generator_class, settings: {...}, created, already_existed, updated, saved }

create_modulation_parameter

Additive Idempotent

Create a sound modulation parameter asset of one concrete class at parameter_path, with the engine's default settings, then save it; there is no undo step. A parameter is what a modulation patch outputs to (set_modulation_patch_output_parameter), and its class sets the unit and mixing (Volume in decibels, Frequency in hertz...). Idempotent: when a modulation parameter already exists at that path it is returned untouched with its real class, parameter_class is not checked, nothing is saved and already_existed is true. An unknown class, a path that does not split into folder and name, or an asset of another type there is an error and nothing changes; a failed save (for example while PIE runs) makes success false with the asset only in memory. Tune it with set_properties (its Settings struct) and read it with get_modulation_parameter_info.

Parameter Type Required Description
parameter_path string yes Full asset path, folder plus asset name, e.g. "/Game/Audio/Mod/Param_Volume"; the last segment becomes the asset name and a missing folder is created.
parameter_class string yes Concrete class name (case-insensitive). One of: Volume, Frequency, LPFrequency, HPFrequency, Bipolar, Additive, Scaled; the engine spellings LPFFrequency and HPFFrequency are accepted too. Not checked when a parameter already exists at parameter_path.

Returns: { parameter_path, parameter_name, parameter_class, created, already_existed, saved }

create_sound_attenuation

Additive

Create a USoundAttenuation asset at package_path/name, or load the one already there, then force bAttenuate on, apply the optional falloff_distance and sphere radius, and save it (re-running edits the existing asset). Returns the values read back; set_properties edits every other field.

Parameter Type Required Description
name string yes Name of the new Sound Attenuation asset
package_path string no Target content path, defaults to /Game/Audio
falloff_distance number no FalloffDistance in Unreal units (cm): how far beyond the inner shape the volume fades out. Unchanged when omitted.
radius number no Inner sphere radius in Unreal units (cm); sets the shape to Sphere and AttenuationShapeExtents to (radius, 0, 0). Unchanged when omitted.

Returns: { name: string, package_path: string, asset_path: string, asset_class: string, attenuate: bool, falloff_distance: number, radius: number, shape_extent_x: number, shape_extent_y: number, shape_extent_z: number, applied_falloff_distance: bool, applied_radius: bool, created: bool, already_exists: bool, saved: bool }

create_sound_class

Destructive Idempotent

Create a USoundClass asset at package_path/name (package_path defaults to /Game/Audio) and save it. A sound class already at that path is loaded instead (already_exists true, created false) and the volume and pitch you pass overwrite its values before it is saved again; omitted ones keep their current values, the engine defaults on a new class. Idempotent. The reply reads volume and pitch back from the asset, and applied_volume / applied_pitch say which were written. An invalid path, or an asset of another class there, is an error; a failed save (for example during PIE) makes success false with saved=false and save_error. Edit the other properties with set_properties, read them with get_properties, and wire the hierarchy with set_sound_class_parent.

Parameter Type Required Description
name string yes Name of the new Sound Class asset
package_path string no Target content path, defaults to /Game/Audio
volume number no Optional Volume multiplier on FSoundClassProperties; also written to a class that already exists, unchanged when omitted
pitch number no Optional Pitch multiplier on FSoundClassProperties; also written to a class that already exists, unchanged when omitted

Returns: { name: string, package_path: string, asset_path: string, asset_class: string, volume: number, pitch: number, applied_volume: bool, applied_pitch: bool, created: bool, already_exists: bool, saved: bool, save_error?: string }

create_sound_concurrency

Destructive Idempotent

Creates a Sound Concurrency asset (USoundConcurrency, the rule that caps how many sounds of a group play at once) at package_path/name, or loads the one already there instead of making a duplicate (created and already_exists say which), then saves it; success is false, with save_error, when the save fails. With max_count it also sets MaxCount, which on an existing asset overwrites the old value, as one undo step; without it an existing asset is left as it was. Idempotent: the same call again gives the same asset and value. An invalid path, or an asset of another class at that path, is an error. The other concurrency settings (resolution rule, volume scaling, retrigger time) are edited with set_properties on the asset_path this returns, and read with get_properties; sibling audio assets come from create_sound_class, create_sound_attenuation and create_sound_mix.

Parameter Type Required Description
name string yes Asset name of the Sound Concurrency, without a folder (e.g. "SCon_Footsteps").
package_path string no Content folder for the asset, e.g. "/Game/Audio/Concurrency"; defaults to /Game/Audio.
max_count number no Optional whole number: most sounds of this group that play at once (MaxCount); values below 1 become 1 and fractions are truncated. Unchanged when omitted.

Returns: { name: string, package_path: string, asset_path: string, asset_class: string, max_count: int, applied_max_count: bool, created: bool, already_exists: bool, saved: bool }

create_sound_cue

Additive Idempotent

Create an empty USoundCue asset (no nodes and no first node, so it plays nothing yet) at package_path/name and save it. Idempotent: a sound cue already at that path is returned unchanged with created=false and already_existed=true, and nothing is saved; an asset of another class there is an error and nothing is written. Not an undo step. Build the graph next with add_graph_node and connect_pins (to @output for the first node), and read it back with get_graph_nodes; cue_path is their asset_path. A failed save makes success false, with saved=false and the new cue left in memory.

Parameter Type Required Description
name string yes Asset name, e.g. 'SC_Footsteps'; package_path/name must form a valid long package name.
package_path string no Content folder as a long package path, e.g. '/Game/Audio/Cues' (default /Game/SoundCues); trailing slashes are ignored.

Returns: { name: string, package_path: string, asset_path: string, cue_path: string, created: bool, already_existed: bool, node_count: int, saved: bool, message: string }

create_sound_mix

Destructive Idempotent

Create a USoundMix asset at package_path/name (package_path defaults to /Game/Audio) and save it; a sound mix already there is loaded instead (already_exists true) and the eq_enabled and duration you pass overwrite its values before it is saved. Omitted fields keep their current values; the reply reads eq_enabled and duration back from the asset. An invalid path, or an asset of another class there, is an error; a failed save is an error with the change kept in memory. Idempotent. Add per-class volume and pitch adjusters with set_sound_mix_class_override; create the classes with create_sound_class.

Parameter Type Required Description
name string yes Name of the new Sound Mix asset
package_path string no Target content path, defaults to /Game/Audio
eq_enabled boolean no Optional bool, sets USoundMix::bApplyEQ (whether to apply the EQ effect). Left at the asset default when absent.
duration number no Optional float, sets USoundMix::Duration in seconds (negative means applied until another mix is set). Left at the asset default when absent.

Returns: { name: string, package_path: string, asset_path: string, asset_class: string, eq_enabled: bool, duration: number, applied_eq_enabled: bool, applied_duration: bool, created: bool, already_exists: bool, saved: bool }

create_sound_modulation_patch

Additive Idempotent

Create an empty sound modulation patch asset at package_path/patch_name (no inputs, no output parameter, bypassed with bBypass true), then save it; there is no undo step. A patch combines control buses into the value of one output parameter; for a single bus use create_control_bus, for a time-varying source create_modulation_generator. Idempotent: a patch already at that path is returned untouched as it stands, nothing is saved and already_existed is true. An invalid path, or an asset of another type at it, is an error and nothing changes; a failed save (for example while PIE runs) makes success false with the asset only in memory. Then add buses with add_modulation_input_to_patch, set the output with set_modulation_patch_output_parameter (a parameter from create_modulation_parameter), turn bypass off with set_modulation_patch_bypass, and read it back with get_sound_modulation_patch_info.

Parameter Type Required Description
patch_name string yes Asset name of the patch without its folder, e.g. "Patch_Volume"; appended to package_path.
package_path string no Content folder for the asset, e.g. "/Game/Audio/Mod" (default /Game/MCP); created when missing.

Returns: { patch_path, patch_name, bBypass, input_count, output_parameter_path, created, already_existed, saved }

create_sound_source_bus

Destructive

Creates a USoundSourceBus asset at package_path/name, or loads the one already there, writes its routing fields and saves it; another asset class at the path is an error. source_bus_channels and duration, when omitted, take the defaults (Stereo, 1.0 s) on a new asset and keep their value on an existing one, whose fields the given values overwrite. Every value is validated before any asset is created or loaded, so an invalid one leaves nothing behind. audio_bus_path, when given, must load as a UAudioBus and becomes the bus whose audio this source bus plays; when omitted that field is left as is. Edit later with set_sound_source_bus_audio_bus or set_sound_source_bus_send_info; read with get_sound_source_bus.

Parameter Type Required Description
name string yes Name of the new Sound Source Bus asset
package_path string no Target content path, defaults to /Game/Audio
source_bus_channels string no ESourceBusChannels: 'Mono' | 'Stereo' (default). USoundSourceBus inherits only Mono/Stereo. The default applies to a new asset only.
duration number no Duration in seconds, at least 0 (0.0 means indefinite); a negative value is an error. Default 1.0 on a new asset only.
audio_bus_path string no Optional full content path of a UAudioBus to assign as the AudioBus return.

Returns: { name: string, package_path: string, asset_path: string, asset_class: string, source_bus_channels: string, duration: float, audio_bus_path: string, audio_bus_class: string, applied_channels: bool, applied_duration: bool (each true when this call wrote the field: given, or the default on a new asset), applied_audio_bus: bool, created: bool, already_exists: bool, saved: bool, save_error?: string }

create_sound_submix

Additive

Create an empty USoundSubmix asset at package_path/name, or load the one already there, and save it. Returns asset_path, created, already_exists and saved; add effects with add_submix_effect_to_chain and read them with get_submix_effect_chain.

Parameter Type Required Description
name string yes Name of the new Sound Submix asset
package_path string no Target content path, defaults to /Game/Audio

Returns: { name: string, package_path: string, asset_path: string, asset_class: string, created: bool, already_exists: bool, saved: bool }

create_soundfield_submix

Additive

Create a USoundfieldSubmix asset at submix_path and save it, with its default encoding format and an empty effect chain; a new one succeeds only when it reaches disk. An existing one there is returned unchanged and not re-saved (already_existed true, saved false). Returns soundfield_encoding_format, effect_chain_length and saved; inspect it with get_soundfield_submix_info.

Parameter Type Required Description
submix_path string yes Full asset path like "/Game/Audio/MySFSubmix" (required).

Returns: { submix_path, asset_path, soundfield_encoding_format, encoding_settings_class, created, already_existed, saved }

create_subtitles_asset

Destructive Idempotent

Create a USubtitleAssetUserData asset -- the engine's subtitle authoring asset, a list of timed cues -- at package_path/name (default folder /Game/MCP), register it and save it; no undo step. Idempotent: a subtitles asset already at that path is returned unchanged with already_existed=true, saved=false, a message and its cue_count, nothing saved. An invalid package name, or a name taken by an asset of another class, is an error, and so is a failed save of the new asset -- refused while PIE runs, under a read-only root, or a read-only file -- which leaves it unsaved in memory. Fill it with add_subtitle_cue and read it with list_subtitle_cues; delete it with delete_asset.

Parameter Type Required Description
name string yes Name of the new subtitles asset.
package_path string no Destination /Game folder (default /Game/MCP).

Returns: { asset_path: string, success: bool, already_existed: bool, cue_count: int, saved: bool, message: string? }

get_audio_bus

Read-only

Read the channel layout of a UAudioBus asset: channels (Mono, Stereo, Quad, FivePointOne or SevenPointOne), channels_int and num_channels. Read-only. is_active is always false because no audio device is queried. Change the layout with set_audio_bus_channels.

Parameter Type Required Description
bus_path string yes Asset path of the UAudioBus, e.g. "/Game/Audio/AB_Music".

Returns: { bus_path: string, asset_class: string, channels: string, channels_int: int, num_channels: int, is_active: bool (always false: headless — no audio device) }

get_audio_component_properties

Read-only

Read an editor-level audio component by object name: volume, pitch, active state, transform, sound and its duration, and the attenuation really applied (override, else asset, else sound). Use it for these derived values; get_object_info reads the raw UPROPERTYs. Every audio component of every actor is searched, the name compared without case. Component names are unique only per actor (every AmbientSound's is AudioComponent0), so a name that several actors carry is an error listing the owners unless actor_name (object name, not label) picks one; an actor_name that names no actor, or whose actor has no component of that name, is an error too. Read-only.

Parameter Type Required Description
audio_component_name string yes Object name of the audio component to query (e.g. "AudioComponent0"), compared without case against EVERY audio component of every actor in the editor world.
actor_name string no Optional object name (not label) of the actor that owns the component, compared without case. Needed when several actors own an audio component of that name (every AmbientSound's is AudioComponent0): without it that is an error listing the owners. An actor_name that names no actor, or whose actor has no such component, is an error.

Returns: { audio_component_name: string, audio_component_found: bool, audio_component_message: string, component_class: string, component_type: string, audio_volume: number, audio_pitch: number, audio_enabled: bool (IsActive), audio_auto_activate: bool, audio_mobility: string, audio_position: { x, y, z }, audio_rotation: { pitch, yaw, roll }, audio_scale: { x, y, z } (component world transform), audio_sound_name: string, audio_sound_class: string, audio_sound_duration: number, audio_sound_path: string ("None" with no sound), audio_sound_is_sound_wave: bool, audio_sound_is_sound_cue: bool, audio_3d_enabled: bool (bAllowSpatialization), audio_3d_attenuation_radius: number (shape extent X), audio_3d_attenuation_falloff: number (both 0 with no attenuation applied), audio_3d_attenuation_cone_angle: number, audio_3d_attenuation_cone_feather: number (cone shape only, else 0), audio_owner_name: string, audio_owner_class: string, audio_owner_path: string, audio_owner_position: { x, y, z }, audio_owner_rotation: { pitch, yaw, roll }, audio_level: string, audio_world: string }

get_audio_settings

Read-only

Survey audio in the editor, every value read from the engine: a census of EVERY audio component of every actor in the editor world (even while PIE runs; an actor with several is counted once per component), each entry naming its owner and object path, with its volume, pitch and playing, looping and spatialized state, plus the counts and volume and pitch statistics; the main audio device's live state (audio_api is the module that created the device, then sample rate, buffer size, max channels, mixer and which audio plugins are on), all null with audio_device_note when there is no device (audio off: an editor started with -NoSound, or no device could be created); the audio quality level the engine applies (the user's quality level within the project's Audio settings levels); and the platform audio config the project sets (audio_platform_config, only the keys the config sets). Read-only; no parameters. audio_quality_score (the share of active components, null with none), the recommendations and the complexity score are heuristics. For other project audio settings use get_project_settings_value; for one component in depth, get_audio_component_properties.

No parameters.

Returns: { audio_settings_found: bool, audio_settings_message: string, world_name?: string, audio_component_count: int, active_audio_component_count: int, playing_audio_component_count: int, looping_audio_component_count: int, spatialized_audio_component_count: int, sound_wave_count: int, sound_cue_count: int, total_volume: number, average_volume: number, max_volume: number, min_volume: number, total_pitch: number, average_pitch: number, max_pitch: number, min_pitch: number, audio_component_details: [{ audio_component_name: string, audio_component_path: string, audio_owner_name: string, audio_component_class: string, audio_volume: number, audio_pitch: number, audio_enabled: bool, audio_playing: bool, audio_looping: bool, audio_spatialized: bool, audio_mobility: string, audio_sound_name: string, audio_sound_class: string, audio_sound_duration: number, audio_sound_is_sound_wave: bool, audio_sound_is_sound_cue: bool, audio_position: { x, y, z } }], engine_version: string, platform_name: string, platform_architecture: string, platform_os: string, audio_enabled: bool, audio_api: string|null, audio_mixer_loaded: bool|null, audio_max_channels: int|null, audio_sample_rate: number|null, audio_buffer_size: int|null, audio_num_buffers: int|null, audio_spatialization_plugin_enabled: bool|null, audio_reverb_plugin_enabled: bool|null, audio_occlusion_plugin_enabled: bool|null, audio_modulation_plugin_enabled: bool|null, audio_device_note?: string, audio_quality: string|null, audio_quality_level: int|null, audio_quality_max_channels: int|null, audio_quality_level_count: int, audio_platform_config: { section: string, sample_rate?: int, callback_buffer_frame_size?: int, num_buffers?: int, max_channels?: int, num_source_workers?: int }, audio_quality_score: number|null, audio_recommendations: [string], audio_complexity_score: number, audio_complexity_rating: string }

get_control_bus_info

Read-only

Read a USoundControlBus asset and its live value in the editor world without changing anything. default_value is the bus default normalized value; current_value is what UAudioModulationStatics::GetModulatorValue returns for the bus in the editor world, and the engine answers 1.0 for a bus that is not active there, so 1.0 alone does not prove a mix is applied; with no editor world it equals default_value. subsystem_active says whether the editor world has an audio modulation manager. A bus that cannot be loaded is an error. Push a value with set_control_bus_value; mix stages: get_control_bus_mix_info; patches: get_sound_modulation_patch_info; parameters and generators: get_modulation_parameter_info, get_modulation_generator_info.

Parameter Type Required Description
bus_path string yes Asset path to the USoundControlBus, e.g. "/Game/Audio/Bus_Music.Bus_Music"

Returns: { bus_path, default_value, current_value, subsystem_active }

get_control_bus_mix_info

Read-only

Reads the stages of a USoundControlBusMix asset without changing it. Returns mix_path, stage_count and stages, one per stage with bus_path (empty when the bus reference is cleared), target_value, attack_time and release_time. Edit a stage with set_control_bus_mix_stage_value.

Parameter Type Required Description
mix_path string yes Asset path to the USoundControlBusMix

Returns: { mix_path, stage_count, stages: [{ bus_path, target_value, attack_time, release_time }] }

get_metasound_info

Read-only

Read the top-level metadata of a MetaSound Source asset (a preset included), loading it if needed: its class, the root graph class name, the graph inputs and outputs (name and type) with their counts, interface_count (the number of interfaces the document declares) and the node, connection (edge) and variable counts of the root graph's default page; with include_defaults, each input's default value too. Read-only; a path that does not resolve to a UMetaSoundSource, a MetaSound Patch included, is an error. get_graph_nodes lists the nodes and their connections; get_assets_by_type with asset_type MetaSoundSource finds sources.

Parameter Type Required Description
metasound_path string yes Asset path of the MetaSound Source, as a package path like "/Game/MetaSounds/MS_Example" or an object path like "/Game/MetaSounds/MS_Example.MS_Example"
include_defaults boolean no Optional bool (default false). When true, each inputs[] entry gains value: its default as the MetaSound editor builder reads it (a literal string), or "(inherited)" when the builder has none (a preset input taken from its referenced asset). Opens the editor builder for the asset; the asset is not changed.

Returns: { source_name: string, asset_path: string, class_name: string, graph_class_name: string, input_count: number, output_count: number, interface_count: number, node_count: number, connection_count: number, variable_count: number, inputs: [{ name: string, type: string, value?: string }], outputs: [{ name: string, type: string }] }

get_metasound_node_property

Read-only

Read one field of the Configuration struct of a MetaSound Source node, found by its node GUID (from get_graph_nodes), returning its C++ type, has_value and value as JSON. Use it because MetaSound nodes are document structs, not UObjects, so get_properties cannot reach them; input defaults are set_pin_default_value. Fails when the node has no Configuration struct or no such property; Patches are refused. Read-only; write with set_metasound_node_property.

Parameter Type Required Description
metasound_path string yes MetaSound Source asset path, e.g. "/Game/Audio/MS_Rain"; MetaSound Patches are not accepted.
node_id string yes Node GUID, as get_graph_nodes returns it in node_id; a value that is not a GUID is refused.
property string yes FProperty name on the Configuration struct.

Returns: { metasound_path, node_id, property, type, has_value, value? }

get_modulation_generator_info

Read-only

Read the class and settings of a USoundModulationGenerator asset without changing it. settings depend on the class: LFO gives shape, frequency, amplitude, offset and phase; ADEnvelope gives attack_time and decay_time; EnvelopeFollower gives attack_time, release_time, gain and audio_bus_path (empty when no audio bus is set); any other generator class gives an empty settings object. Use it to check create_modulation_generator or a set_properties write; for a modulation parameter use get_modulation_parameter_info, for a control bus get_control_bus_info, for a patch get_sound_modulation_patch_info. A path that does not load as a modulation generator is an error.

Parameter Type Required Description
generator_path string yes Asset path of the generator, e.g. "/Game/Audio/Mod/LFO_Wobble", as create_modulation_generator returns it.

Returns: { generator_path, generator_class, settings: {...} }

get_modulation_parameter_info

Read-only

Read a sound modulation parameter asset without changing it: its concrete class (e.g. SoundModulationParameterVolume) and its settings, value_normalized (the 0-1 default), clamp_to_normalized_range (left out on Unreal Engine 5.7, which lacks it) and value_unit (the default in the parameter's own unit). Use it to check a parameter before making it a patch output with set_modulation_patch_output_parameter, or after set_properties changed it. A path that does not load as a modulation parameter is an error. Create one with create_modulation_parameter; patches and generators have their own readers: get_sound_modulation_patch_info, get_modulation_generator_info.

Parameter Type Required Description
parameter_path string yes Asset path of the modulation parameter, e.g. "/Game/Audio/Mod/Param_Volume", as create_modulation_parameter returns it (parameter_path).

Returns: { parameter_path, parameter_class, value_normalized, clamp_to_normalized_range?, value_unit }

get_sound_modulation_patch_info

Read-only

Read a USoundModulationPatch asset without changing it: bBypass (a bypassed patch outputs the default value of its output parameter), output_parameter with its path and class (null when none is set), and one inputs entry per input, in order, holding the bus path (empty when that input has no bus) and a name that is always empty because the engine input struct has no name. A patch that cannot be loaded is an error. Change it with set_modulation_patch_bypass, set_modulation_patch_output_parameter, add_modulation_input_to_patch and remove_modulation_input_from_patch; make one with create_sound_modulation_patch; read an input bus with get_control_bus_info and the output parameter with get_modulation_parameter_info.

Parameter Type Required Description
patch_path string yes Asset path to the USoundModulationPatch, e.g. "/Game/Audio/Patch_Duck.Patch_Duck"

Returns: { patch_path, bBypass, output_parameter: { path, class } | null, inputs: [{ bus: { path }, name }], input_count }

get_sound_source_bus

Read-only

Read the routing fields of a USoundSourceBus asset: source_bus_channels (Mono or Stereo), duration in seconds (0 plays indefinitely) and the UAudioBus it outputs to (audio_bus_path and audio_bus_class, empty when none). Read-only. Writer: set_sound_source_bus_audio_bus.

Parameter Type Required Description
ssb_path string yes Asset path of the USoundSourceBus, e.g. "/Game/Audio/SSB_Radio".

Returns: { ssb_path: string, asset_class: string, source_bus_channels: string, duration: float, audio_bus_path: string, audio_bus_class: string }

get_soundfield_submix_info

Read-only

Read a soundfield submix asset without changing it: its encoding format as authored (soundfield_encoding_format) and as the engine resolves it (resolved_format), its encoding settings object (class and path), and every effect of its chain in order with index, class, path and settings class and path. A note is added when no concrete soundfield effect class is loaded (stock Unreal ships none; a spatial audio plugin adds them), which is why the chain is usually empty. Use it after create_soundfield_submix, or to find the effect_index that remove_soundfield_effect takes; append an effect with add_soundfield_effect_to_submix. For an ordinary submix's effects use get_submix_effect_chain. A path that does not load as a soundfield submix is an error.

Parameter Type Required Description
submix_path string yes Asset path of the soundfield submix, e.g. "/Game/Audio/SFS_Ambisonics" or "/Game/Audio/SFS_Ambisonics.SFS_Ambisonics", as create_soundfield_submix returns it (submix_path).

Returns: { submix_path, soundfield_encoding_format, resolved_format, encoding_settings_class, encoding_settings: { class, path }, effect_chain: [{ index, class, path, settings_class, settings_path }], chain_length, note? }

get_submix_effect_chain

Read-only

Read the effect chain of a USoundSubmix asset in order: one entry per slot with the name, class and path of its USoundEffectSubmixPreset ("None" for an empty slot), plus chain_length. Read-only; add_submix_effect_to_chain appends to it.

Parameter Type Required Description
submix_path string yes Asset path of the USoundSubmix, e.g. "/Game/Audio/SM_Master.SM_Master".

Returns: { submix_path: string, effects: [object], chain_length: int }

list_metasound_node_types

Read-only

List the MetaSound node classes the editor's MetaSound search engine knows, without changing anything: per class its class_name, class_path (Namespace.Name.Variant, e.g. UE.Sine.Audio: the node_type add_graph_node takes), type (e.g. External, the type of node classes and MetaSound assets), highest version (major.minor; the major is add_graph_node's major_version), access_flags, is_native (false for a class a MetaSound asset defines, as the MetaSound asset manager knows it, true for one registered by engine or plugin code; null if the asset manager is unavailable) and asset_path (the defining asset, empty for a native class). Deprecated classes are left out and only the highest version of each is listed; with include_unloaded (default) MetaSound assets not loaded yet are included too. The full list is long (hundreds of classes, too long to come back inline), so narrow it with name_filter and max_results; count is what came back, matched_count what matched the filter and total_count every class. Use it to find a class before add_graph_node; the nodes already in one MetaSound's graph, and one node's pins, are get_graph_nodes. Editor only.

Parameter Type Required Description
include_unloaded boolean no true (default) also lists the classes of MetaSound assets not loaded into memory yet, from the MetaSound asset manager's tag data; false lists only the classes registered now.
name_filter string no Optional text matched, case-insensitively, inside each class_path or asset_path, e.g. "Sine" or "/Game/Audio/MS_"; empty lists every class.
max_results integer no Optional cap on the classes returned after the filter (default 0, no cap); truncated says whether it cut the list.

Returns: { count, matched_count, total_count, truncated, types: [{ class_name, class_path, type, version, access_flags, is_native, asset_path }] }

list_subtitle_cues

Read-only

List the cues of a subtitles asset (USubtitleAssetUserData, the engine's list of timed subtitle cues) in stored order, a page at a time (offset/limit), without changing anything: per cue its 0-based index, text, start_offset and duration in seconds, duration_type (use_sound_duration or use_duration_property), priority, subtitle_type (subtitle, closed_caption or audio_description) and comment, plus count and max_duration (GetMaximumDuration, the latest end time). Use it to find the cue_index that set_subtitle_cue and remove_subtitle_cue take, or to check add_subtitle_cue's result; create the asset with create_subtitles_asset. An asset with no cues is a success with count 0; a path that does not load as a USubtitleAssetUserData is an error.

Parameter Type Required Description
asset_path string yes Subtitles asset as a package or object path, e.g. "/Game/Audio/Subs/SUB_Intro" or "/Game/Audio/Subs/SUB_Intro.SUB_Intro".
offset integer no Index of the first entry returned, counted from 0 (default 0). Read the next page at the reply's next_offset.
limit integer no Most entries returned per call, 1..1000 (default 100).

Returns: { asset_path: string, success: bool, count: int (entries in this page), max_duration: float, total: int, offset: int, limit: int, returned: int, truncated: bool, next_offset: int|null, cues: [{index, text, start_offset, duration, duration_type, priority, subtitle_type, comment}] }

play_sound

Additive

Starts the sound already assigned to an audio component of the editor world, found by object name (case-insensitive) among EVERY audio component of every actor, so an actor's second or third audio component is reached too; a name that components of several actors carry is an error listing the owners unless actor_name (object name, not label) picks one. Components in a running PIE world are not reached. start_time is an offset in seconds into the sound. A component without a sound is an error: assign one with set_audio_sound. Transient: nothing is saved, marked dirty or undoable. success is true only when the audio device holds a new active sound for this component afterwards, read on the audio thread before and after the call (active_sounds_before/after, sounds of the component not being stopped). No audio device (an editor started with -NoSound, or no device could be created), a world that does not allow audio playback, or a sound the device did not start (not playable, out of range, a concurrency limit, a looping sound parked as a virtual loop until a listener comes in range) is an error saying which and naming the component. was_playing and playing (UAudioComponent::IsPlaying) are read just before and just after the call; audio_component_path and audio_owner_name name the component used. Stop with stop_sound; to play an asset at a location without a component use play_sound_at_location.

Parameter Type Required Description
audio_component_name string yes Object name of the audio component to play (e.g. "AudioComponent0"), compared without case against every audio component of every actor in the editor world.
start_time number no Optional offset in seconds to start playback at
actor_name string no Optional object name (not label) of the actor that owns the component, compared without case. Needed when several actors own an audio component of that name (every AmbientSound's is AudioComponent0); an empty one, one that names no actor, or one whose actor has no such component is an error.

Returns: { audio_component_name: string, audio_component_path: string, audio_owner_name: string, playing: bool, was_playing: bool, sound_name: string, start_time: number, active_sounds_before: int, active_sounds_after: int (active sounds of this component on the device, those being stopped left out), active_sound_started: bool, success: bool }

play_sound_at_location

Additive

Play a sound asset (sound wave, sound cue or MetaSound source) once at a world location in the editor world, as a fire-and-forget one-shot with no audio component (UGameplayStatics::PlaySoundAtLocation) and only the sound's own attenuation. Nothing is saved, dirtied or undoable, and no handle comes back: the sound plays to its end, and a looping one keeps looping with no way to stop it from here. Each call starts another instance. success is true only when the audio device holds a new active sound of that asset afterwards, counted on the audio thread before and after the call (active_sounds_before/after). No audio device (an editor started with -NoSound, or no device could be created), a world that does not allow audio playback, a one-shot out of earshot of every listener (the engine's own audibility test), or a sound the device did not start (not playable, a concurrency limit, a looping sound parked as a virtual loop) is an error saying which. A sound that does not load or a location that is not an array of 3 numbers is an error too. For playback you can stop or inspect, use play_sound and stop_sound on an audio component (set_audio_sound assigns its sound).

Parameter Type Required Description
sound_path string yes Object path of the sound asset, e.g. '/Game/Audio/MySound.MySound' (the package path '/Game/Audio/MySound' also loads).
location array yes World position [x, y, z] in centimetres, e.g. [0, 0, 100]; required, and the origin [0, 0, 0] is valid.
volume number no Optional volume multiplier, e.g. 0.5 for half; default 1.0.
pitch number no Optional pitch multiplier, e.g. 2.0 for an octave up; default 1.0.
rotation array no Optional [pitch, yaw, roll] in degrees, the facing of the sound (it matters to a directional attenuation); default [0, 0, 0].

Returns: { sound_path: string, sound_name: string, location: { x, y, z }, rotation: { pitch, yaw, roll }, volume: number, pitch: number, audio_device_id: int, audible: bool (the engine's audibility test at that location), max_distance: number, looping: bool, active_sounds_before: int, active_sounds_after: int (active sounds of this asset on the device), active_sound_created: bool, success: bool }

remove_bus_from_mix

Destructive

Removes every stage that uses a USoundControlBus from a USoundControlBusMix asset and saves the mix; a removal succeeds only when the mix reaches disk. A bus that is not in the mix is already the state asked for: the call succeeds with removed false and already_absent true, and saves nothing. Returns mix_path, bus_path, removed, already_absent, stage_count, saved.

Parameter Type Required Description
mix_path string yes Asset path to the USoundControlBusMix
bus_path string yes Asset path to the USoundControlBus to remove from the mix

Returns: { mix_path, bus_path, removed, already_absent, stage_count, saved }

remove_metasound_graph_input

Destructive Idempotent

Removes a graph INPUT (and its node) from a MetaSound Source by name (inverse of add_metasound_graph_input). Queries GetGraphInputNames first: if the input is already absent it returns already_absent without error (idempotent), otherwise it calls UMetaSoundBuilderBase::RemoveGraphInput and reports the result. Saves the asset.

Parameter Type Required Description
metasound_path string yes Asset path of the MetaSound Source.
input_name string yes Name of the graph input to remove.

Returns: { asset_path: string, input_name: string, removed: bool, already_absent: bool, saved: bool, save_error: string?, note: string? }

remove_metasound_graph_output

Destructive Idempotent

Removes a graph OUTPUT (and its node) from a MetaSound Source by name (inverse of add_metasound_graph_output). Queries GetGraphOutputNames first: if the output is already absent it returns already_absent without error (idempotent), otherwise it calls UMetaSoundBuilderBase::RemoveGraphOutput and reports the result. Saves the asset.

Parameter Type Required Description
metasound_path string yes Asset path of the MetaSound Source.
output_name string yes Name of the graph output to remove.

Returns: { asset_path: string, output_name: string, removed: bool, already_absent: bool, saved: bool, save_error: string?, note: string? }

remove_metasound_interface

Destructive

Remove an interface from a MetaSound Source graph, with the graph inputs and outputs (and their nodes) it declared, in one undo step, then save the asset. Inverse of add_metasound_interface. The reply re-reads the document's interfaces (interface_count, still_declared). An interface the graph does not declare is an honest no-op (removed=false, nothing saved); a source that does not load is an error. Removing the source interface a one-shot MetaSound Source needs (UE.Source...) leaves a source the engine may refuse to play; get_metasound_info lists what is declared.

Parameter Type Required Description
metasound_path string yes Asset path of the MetaSound Source.
interface_name string yes Name of the declared interface to remove, as add_metasound_interface took it.

Returns: { asset_path: string, interface_name: string, removed: bool, still_declared: bool, interface_count: int, saved: bool, save_error: string?, note: string? }

remove_modulation_input_from_patch

Destructive Idempotent

Remove every input of a USoundModulationPatch asset whose control bus has the same asset name as the bus at bus_path (so a same-named bus in another folder matches too), in one undo step (undo restores the inputs), then save the patch. Inverse of add_modulation_input_to_patch; list the inputs first with get_sound_modulation_patch_info. Idempotent: when no input matches, nothing is changed or saved and the call succeeds with removed false and already_removed true. A patch or bus that does not load is an error and nothing changes; a removal succeeds only when the patch reaches disk, so a failed save (for example while PIE runs) makes success false with the inputs gone only in memory. input_count is the number of inputs left.

Parameter Type Required Description
patch_path string yes Asset path of the USoundModulationPatch, e.g. "/Game/Audio/Mod/MP_Volume", as create_sound_modulation_patch returns it.
bus_path string yes Asset path of an existing USoundControlBus, e.g. "/Game/Audio/Mod/CB_Music"; it must load, and only its asset name is compared with the inputs' buses.

Returns: { patch_path, bus_path, removed, already_removed, input_count, saved }

remove_sound_mix_class_override

Destructive

Remove the sound class adjuster for one sound class from a USoundMix, in one undo step, then save the mix. Inverse of set_sound_mix_class_override, which adds or updates that adjuster. A mix with no adjuster for the class is an honest no-op (removed=false, nothing saved); a mix or class that does not load is an error. The reply re-reads the mix's adjusters (remaining_classes). A failed save makes success false with save_error.

Parameter Type Required Description
sound_mix_path string yes Content path of the USoundMix asset.
sound_class_path string yes Content path of the USoundClass whose adjuster to remove.

Returns: { sound_mix_path: string, sound_class_path: string, removed: bool, removed_count: int, total_adjusters: int, remaining_classes: [string], saved: bool, save_error?: string }

remove_soundfield_effect

Destructive

Detach the effect at effect_index from the effect chain of a soundfield submix asset, in one undo step, then save the submix; later effects shift down one index and the effect object itself stays in the package. The inverse of add_soundfield_effect_to_submix; find the index with get_soundfield_submix_info. The same index again removes the next effect, and an index past the end of the chain is an error with nothing changed. Success needs the save: a failed save makes success false, with saved false, save_error and the change only in memory. It works whether or not a concrete soundfield effect class is loaded (stock Unreal ships none; a spatial audio plugin adds them): any entry of the chain, a null slot included, is detached. A path that does not load as a soundfield submix is an error. For an ordinary submix use remove_submix_effect_from_chain.

Parameter Type Required Description
submix_path string yes Asset path of the soundfield submix, e.g. "/Game/Audio/SFS_Ambisonics", as create_soundfield_submix returns it (submix_path).
effect_index number yes 0-based position in the effect chain, as get_soundfield_submix_info returns it (effect_chain[].index); a negative value is an error.

Returns: { submix_path, effect_index, removed_effect_class, removed_effect_path, removed: true, already_absent: false, chain_length, saved, save_error? } -- success only when saved; removed_effect_class and removed_effect_path are empty for a null slot.

remove_submix_effect_from_chain

Destructive

Remove the entry at effect_index from a USoundSubmix's effect chain, in one undo step, notify the submix of the edit (as the Details panel does, so a running audio device rebuilds the chain) and save the submix. Inverse of add_submix_effect_to_chain; the later entries move up one index. The preset itself is not deleted: a preset add_submix_effect_to_chain made inside the submix package stays in it unreferenced, one appended by path stays where it was. An index out of range or a submix that does not load is an error and nothing changes; a failed save makes success false with save_error. Read the chain first with get_submix_effect_chain; a soundfield submix's effects: remove_soundfield_effect.

Parameter Type Required Description
submix_path string yes Full content path of the target USoundSubmix
effect_index integer yes 0-based position in the chain, as get_submix_effect_chain lists it

Returns: { submix_path: string, effect_index: int, removed_effect: string, removed_effect_class: string, removed: bool, chain_length: int, chain: [string], saved: bool, save_error?: string }

remove_subtitle_cue

Destructive Idempotent

Remove a single FSubtitleAssetData cue by index. Inverse of add_subtitle_cue; use delete_asset to destroy the whole asset instead. Idempotent: an out-of-range index returns removed:false + note, not an error.

Parameter Type Required Description
asset_path string yes /Game path to the USubtitleAssetUserData.
cue_index integer yes 0-based index into Subtitles[].

Returns: { asset_path, cue_index, removed, previous_count, new_count }

set_audio_bus_channels

Destructive Idempotent

Change the channel layout (AudioBusChannels) of an existing UAudioBus asset and save it; success requires the save. Returns channels, channels_int and num_channels read back from the asset. To make a new bus use create_audio_bus.

Parameter Type Required Description
bus_path string yes Asset path of the UAudioBus, e.g. "/Game/Audio/AB_Music".
channels string yes EAudioBusChannels: 'Mono' | 'Stereo' | 'Quad' | 'FiveDotOne' | 'SevenDotOne', case-insensitive; FivePointOne, 5.1, SevenPointOne and 7.1 are accepted too.

Returns: { bus_path: string, asset_class: string, channels: string, channels_int: int, num_channels: int, saved: bool }

set_audio_sound

Destructive Idempotent

Sets the sound asset of an audio component of the editor world, found by object name (case-insensitive) among EVERY audio component of every actor, so an actor's second or third audio component is reached too; a name that components of several actors carry is an error listing the owners unless actor_name (object name, not label) picks one. Components in a running PIE world are not reached. A component that is playing restarts with the new sound unless it allows multiple instances. The change is not saved, marked dirty or undoable. A missing component or a sound that does not load is an error. previous_sound_name names the sound it replaced (None when there was none); audio_component_path and audio_owner_name name the component changed. Start playback with play_sound.

Parameter Type Required Description
audio_component_name string yes Object name of the audio component to modify (e.g. "AudioComponent0"), compared without case against every audio component of every actor in the editor world.
sound_path string yes Full asset path to the sound (e.g. '/Game/Audio/MySound.MySound')
actor_name string no Optional object name (not label) of the actor that owns the component, compared without case. Needed when several actors own an audio component of that name (every AmbientSound's is AudioComponent0); an empty one, one that names no actor, or one whose actor has no such component is an error.

Returns: { audio_component_name: string, audio_component_path: string, audio_owner_name: string, sound_path: string, sound_name: string, previous_sound_name: string, sound_duration: number, success: bool }

set_audio_volume

Destructive Idempotent

Sets the VolumeMultiplier of one audio component placed in the editor world (not PIE); the engine setter also resets its VolumeModulationMin/Max to 1. The component is found by object name (case-insensitive) among EVERY audio component of every actor; a name that components of several actors carry is an error listing the owners, nothing changed, unless actor_name (object name, not label) picks one. No undo step and no dirty mark: the value is lost on reload unless the level gets saved for another reason. A volume outside 0-10 is an error and nothing changes; the same value again gives the same result. The multiplier is read back: new_volume is the value the component holds, and one that does not match the request makes success false with volume_set false. Find components with get_audio_settings and read one with get_audio_component_properties; set_audio_sound changes its sound, set_properties its attenuation (bOverrideAttenuation, AttenuationOverrides); to scale a whole sound class use set_sound_mix_class_override.

Parameter Type Required Description
audio_component_name string yes Object name of the audio component to modify (e.g. "AudioComponent0"), compared without case against every audio component of every actor in the editor world; get_audio_settings lists them with their owners.
volume number yes Volume multiplier from 0.0 to 10.0 (1.0 = the sound's own level, 0.5 = half, 0 = silent); outside that range is an error.
actor_name string no Optional object name (not label) of the actor that owns the component, compared without case. Needed when several actors own an audio component of that name (every AmbientSound's is AudioComponent0); an empty one, one that names no actor, or one whose actor has no such component is an error.

Returns: { audio_component_name: string, audio_component_path: string, audio_owner_name: string, old_volume: number, new_volume: number, requested_volume: number, volume_set: bool, volume_message: string, audio_enabled: bool, audio_pitch: number, audio_mobility: string, audio_sound_name: string, audio_3d_attenuation_radius: number, audio_position: { x, y, z } }

set_control_bus_mix_stage_value

Destructive Idempotent

Sets the stored target value, and optionally the attack and release fade times in seconds, of the stage a USoundControlBus has in a USoundControlBusMix asset, then saves the mix; success requires the save. Only that bus's first stage is edited, inside an undo transaction; a bus that is not in the mix is an error (add it with add_bus_to_mix). It edits the asset, not a live value: push a runtime value with set_control_bus_value. Read the stages with get_control_bus_mix_info.

Parameter Type Required Description
mix_path string yes Asset path to the USoundControlBusMix
bus_path string yes Asset path to the USoundControlBus whose stage is edited
target_value number yes New stage target value (required float)
attack_time number no Optional attack interpolation time in seconds
release_time number no Optional release interpolation time in seconds

Returns: { mix_path, bus_path, target_value, attack_time, release_time, updated, saved }

set_control_bus_value

Destructive Idempotent

Pushes a runtime value into a USoundControlBus through a global bus mix of the editor world (UAudioModulationStatics::SetGlobalBusMixValue), fading over fade_time. Transient: the asset is not modified or saved. An editor world with no audio modulation manager (no audio device) is an error and nothing is pushed. The value is not read back, since the audio render thread applies it after the fade: verification says not_verifiable; read the live value with get_control_bus_info.

Parameter Type Required Description
bus_path string yes Asset path to the USoundControlBus
value number yes New runtime bus value to push (required float)
fade_time number no Fade time in seconds; a negative value reuses the last fade time of the global stage, or 0.1 s if none was set (default -1.0)

Returns: { bus_path, value, fade_time, verification: { status: "not_verifiable", ... }, verification_checks }

set_metasound_graph_input_default

Destructive Idempotent

Set the default value of one graph input of a MetaSound Source asset (a preset included) through the MetaSound editor builder, in one undo step, then save the asset. Give one typed field: bool_value (true or false), int_value (a whole number), string_value (a string) or value (a number, read as a float); with several, the first in that order wins. Or give parameter_type (float, int, bool or string) and value in that JSON type, the typed fields then being ignored. value may also be text, read as the input's own type ("0.5", "true", "Hello"). A missing or mistyped value, an unknown parameter_type, an unknown source, or an input that is missing or does not take that type is an error, with nothing written. value_set means the default reads back as the value; an input already holding it gives changed=false and saved=false, nothing written. A failed save makes success false with save_error. Inputs and their defaults: get_metasound_info (include_defaults); a node pin: set_pin_default_value.

Parameter Type Required Description
metasound_path string yes Asset path of the MetaSound Source.
input_name string yes Name of the graph input whose default to set.
preset_path string no Alias of metasound_path.
parameter_name string no Alias of input_name.
parameter_type string no Optional literal type of value: "float", "int", "bool" or "string". When given, value must be of that JSON type (a whole number for int) and int_value/bool_value/string_value are ignored; another type name is an error.
value any no Float default value, a JSON number (optional, used if no other *_value is provided), or the value as text read as the input's type; with parameter_type, the value in the JSON type it names. Another JSON type is an error
int_value integer no Int32 default value, a whole JSON number (optional, mutually exclusive with value/bool_value/string_value)
bool_value boolean no Bool default value, JSON true or false (optional, mutually exclusive with value/int_value/string_value)
string_value string no String default value, a JSON string (optional, mutually exclusive with value/int_value/bool_value)

Returns: { asset_path: string, input_name: string, value_type: string, value_set: bool, changed: bool, verified: bool, value_read_back: string, saved: bool, save_error?: string, note?: string }

set_metasound_node_property

Destructive Idempotent

Write one field of a MetaSound Source node's Configuration struct, node found by GUID, by reflection directly in the frontend document (not through the MetaSound builder), then save the asset. set_properties cannot reach it: frontend nodes are document data, not UObjects. No undo step. Re-applying a value returns value_changed false but still saves. Succeeds only when the asset reaches disk; a failed save leaves the value in memory only (saved false, save_error). Read: get_metasound_node_property; GUIDs: get_graph_nodes.

Parameter Type Required Description
metasound_path string yes MetaSound Source asset path, e.g. "/Game/Audio/MS_Rain"; MetaSound Patches are not accepted.
node_id string yes Node GUID, as get_graph_nodes returns it in node_id; a value that is not a GUID is refused.
property string yes FProperty name on the Configuration struct.
value any yes New value for the field as JSON, converted by FJsonObjectConverter: a number, bool, string, array or object (for a struct field); numbers and booleans can also be passed as strings ("0.5", "true").

Returns: { metasound_path, node_id, property, set, value_changed, new_value?, saved, save_error? }

set_modulation_patch_bypass

Destructive Idempotent

Set the bBypass flag of a USoundModulationPatch asset, in one undo step (undo restores the old value), and save it. A bypassed patch stays active but outputs the default value of its output parameter, so a patch made by create_sound_modulation_patch (which starts bypassed) does nothing until this sets bypass false. Typical order: add_modulation_input_to_patch, set_modulation_patch_output_parameter, then this; read the result with get_sound_modulation_patch_info. It always writes and saves, even when the flag already had that value (updated is always true); bBypass is read back after the write. A patch that does not load or a missing bypass is an error and nothing changes; a failed save (for example while PIE runs) makes success false with the change only in memory.

Parameter Type Required Description
patch_path string yes Asset path of the USoundModulationPatch, e.g. "/Game/Audio/Mod/MP_Volume", as create_sound_modulation_patch returns it.
bypass boolean yes true bypasses the patch (it outputs its parameter's default); false makes it apply its inputs. Required.

Returns: { patch_path, bBypass, updated, saved }

set_modulation_patch_output_parameter

Destructive Idempotent

Sets the output USoundModulationParameter of a USoundModulationPatch asset, or clears it when parameter_path is an empty string, in one undo step (undo restores the previous one), and saves the patch. Returns patch_path, parameter_path and parameter_class as stored (empty after a clear), updated, cleared, saved. Create a parameter with create_modulation_parameter.

Parameter Type Required Description
patch_path string yes Asset path to the USoundModulationPatch
parameter_path string yes Asset path to the USoundModulationParameter (or empty string to clear)

Returns: { patch_path, parameter_path, parameter_class, updated, cleared, saved }

set_sound_class_parent

Destructive Idempotent

Make one USoundClass the child of another, wiring ParentClass and ChildClasses, and save both packages. A previous parent loses the child in memory but is not saved; only self-parenting is refused, not cycles. Returns child_count, saved_parent and saved_child, succeeding even when a save fails.

Parameter Type Required Description
child_sound_class_path string yes Asset path of the USoundClass to re-parent, e.g. "/Game/Audio/SC_Footsteps.SC_Footsteps".
parent_sound_class_path string yes Asset path of the USoundClass that becomes its parent, e.g. "/Game/Audio/SC_SFX.SC_SFX".

Returns: { child: string, parent: string, child_path: string, parent_path: string, child_count: int, saved_parent: bool, saved_child: bool }

set_sound_mix_class_override

Destructive Idempotent

Sets a sound class adjuster override in a USoundMix. Loads the USoundMix and USoundClass, adds or updates an FSoundClassAdjuster in the mix's SoundClassEffects array, then saves. Inverse: remove_sound_mix_class_override.

Parameter Type Required Description
sound_mix_path string yes Content path of the USoundMix asset.
sound_class_path string yes Content path of the USoundClass to adjust.
volume_adjuster number no Adjuster.VolumeAdjuster (default 1.0).
pitch_adjuster number no Adjuster.PitchAdjuster (default 1.0).
apply_to_children boolean no Adjuster.bApplyToChildren (default false).

Returns: { sound_mix_path: string, sound_class_path: string, success: bool, volume_adjuster: float, pitch_adjuster: float, apply_to_children: bool, total_adjusters: int, saved: bool }

set_sound_source_bus_audio_bus

Destructive Idempotent

Point the AudioBus output of a USoundSourceBus asset at a UAudioBus, or clear it when audio_bus_path is empty or omitted, then save; success requires the save. Returns audio_bus_path and audio_bus_class read back, plus cleared. A bus path that does not load is an error, not a clear.

Parameter Type Required Description
ssb_path string yes Asset path of the USoundSourceBus, e.g. "/Game/Audio/SSB_Radio".
audio_bus_path string no Asset path of the UAudioBus to assign, e.g. "/Game/Audio/AB_Music"; "" or omitted clears the assignment.

Returns: { ssb_path: string, audio_bus_path: string, audio_bus_class: string, cleared: bool, saved: bool }

set_sound_source_bus_send_info

Destructive Idempotent

Write one bus send (an entry of BusSends, routing this sound's audio to another source bus or audio bus at a send level) on a USoundSourceBus asset, in one undo step, then save it. Only the fields given in send_info change, numbers are clamped to the property limits, and send_info in the reply is the whole entry read back (applied_keys only echoes your keys). A send_index past the end grows the list to send_index + 1, filling gaps with default sends. A soundSourceBus or audioBus path that does not load sets that reference to none without an error. Bus output: set_sound_source_bus_audio_bus; CustomCurve send level: set_sound_source_bus_send_level_curve; targets: create_sound_source_bus, create_audio_bus; get_sound_source_bus does not list sends. Idempotent for the same values. A missing or negative send_index, a missing send_info, an asset that does not load, or a field that does not convert is an error; a failed save (for example while PIE runs) makes success false with the change only in memory.

Parameter Type Required Description
ssb_path string yes Asset path of the USoundSourceBus to edit, e.g. "/Game/Audio/SSB_Radio", as create_sound_source_bus returns it (asset_path).
send_index integer yes 0-based position in the BusSends list, e.g. 0; an existing entry is updated in place, a larger index grows the list (required).
send_info object yes Object of FSoundSourceBusSendInfo fields to merge (sourceBusSendLevelControlMethod(Linear|CustomCurve|Manual), soundSourceBus(path), audioBus(path), sendLevel(Manual), minSendLevel/maxSendLevel(Linear), minSendDistance/maxSendDistance(Linear), customSendLevelCurve(object), bEnableLPFCutoff(bool), lPFCutoff(20..20000Hz), bEnableHPFCutoff(bool), hPFCutoff(20..20000Hz)), e.g. {"sourceBusSendLevelControlMethod":"Manual","audioBus":"/Game/Audio/AB_Reverb","sendLevel":0.5} (required).

Returns: { ssb_path: string, send_index: int, bus_sends_count: int, send_info: object, applied_keys: [string], saved: bool }

set_sound_source_bus_send_level_curve

Destructive Idempotent

Merge a FRuntimeFloatCurve JSON into BusSends[send_index].CustomSendLevelCurve of a USoundSourceBus asset (BusSends grows with default entries past its end) and save it; success requires the save. Returns the curve read back. The curve only takes effect when that send uses the CustomCurve control method: see set_sound_source_bus_send_info.

Parameter Type Required Description
ssb_path string yes Full content path of the target USoundSourceBus (USoundBase.BusSends is the target array).
send_index integer yes 0-based index into BusSends; the entry is mutated in place. Resized/extended with default-constructed entries if out of range.
distance_curve object yes FRuntimeFloatCurve fields by their UPROPERTY names, e.g. {"EditorCurveData": {"Keys": [{"Time": 0.0, "Value": 1.0}, {"Time": 1.0, "Value": 0.0}]}}; Time 0-1 maps to MinSendDistance-MaxSendDistance and Keys replaces the key list. Fields left out keep their current values; unknown keys are ignored without error.

Returns: { ssb_path: string, send_index: int, bus_sends_count: int, distance_curve: object, applied_keys: [string], saved: bool }

set_subtitle_cue

Destructive Idempotent

Updates the text and timing fields on an existing subtitle cue. Loads the USubtitleAssetUserData, applies any combination of text / start_offset / duration / duration_type to Subtitles[cue_index], and saves. Fields not provided are left untouched.

Parameter Type Required Description
asset_path string yes Content path of the USubtitleAssetUserData asset.
cue_index number yes Zero-based index into the Subtitles array (required).
text string no Optional new subtitle text (Subtitles[cue_index].Text); an empty string clears it.
start_offset number no Optional new StartOffset (seconds).
duration number no Optional new Duration (seconds).
duration_type string no Optional new SubtitleDurationType ("use_sound_duration" or "use_duration_property").

Returns: { asset_path: string, cue_index: int, success: bool, applied_text: bool, applied_start_offset: bool, applied_duration: bool, applied_duration_type: bool, text?: string (when text was given, read back), start_offset: float, duration: float, duration_type: string, saved: bool }

stop_sound

Destructive

Stop playback on an audio component of the editor world (UAudioComponent::Stop), found by object name (case-insensitive) among EVERY audio component of every actor, so an actor's second or third audio component is reached too; a name that components of several actors carry is an error listing the owners unless actor_name (object name, not label) picks one. Components in a running PIE world are not reached. Returns was_playing and playing, and audio_component_path and audio_owner_name naming the component stopped; success is always true once the component is found. Start playback with play_sound.

Parameter Type Required Description
audio_component_name string yes Object name of the audio component to stop (e.g. "AudioComponent0"), compared without case against every audio component of every actor in the editor world.
actor_name string no Optional object name (not label) of the actor that owns the component, compared without case. Needed when several actors own an audio component of that name (every AmbientSound's is AudioComponent0); an empty one, one that names no actor, or one whose actor has no such component is an error.

Returns: { audio_component_name: string, audio_component_path: string, audio_owner_name: string, playing: bool, was_playing: bool, success: bool }