user: Show practical ways to work with Data Properties in a Blender add-on or script – include code.

assistant: [image reference removed]

Speaker properties.

### Sound

Open
:   The [Data-Block Menu](../../../interface/controls/templates/data_block.xhtml) for loading audio files.
    There are two properties you can check when loading a sound:

    Cache
    :   Decodes the sound and stores it in memory for faster playback.
        Best suited for short, frequently played sound effects but not for long audio tracks.

    Mono
    :   Forces the sound to be single-channel.
        Required for 3D audio and panning effects since multi-channel files assume premixed spatialization.

Mute
:   Disables the speaker’s audio output.

Volume
:   Adjusts the overall loudness of the speaker.

Pitch
:   Alters the playback speed, raising or lowering the pitch.
    Higher values speed up playback, while lower values slow it down.

### Distance

Distance-based volume attenuation controls how the loudness
of a speaker object decreases as the listener moves away.
This effect simulates real-world sound behavior,
making spatial audio more immersive by ensuring that
closer sounds are louder and distant sounds are quieter.

The following settings allow fine-tuning of how sound fades with distance:

Volume Min, Max
:   Defines the minimum and maximum volume based on distance.
    The speaker’s volume will not go below or above these values, regardless of distance.

Attenuation
:   Controls how strongly volume decreases with distance.
    The effect depends on the scene’s [Distance Model](../../../scene_layout/scene/properties.xhtml#bpy-types-scene-audio-distance-model).

Max Distance
:   The maximum distance at which volume attenuation calculations apply.
    Beyond this distance, the volume remains constant.

Distance Reference
:   The reference distance at which the volume is considered full (1.0).
    This should match the distance at which the sound was recorded for accurate playback.

### Cone

Settings that define the speaker’s directional sound behavior.

Imagine a cone with the top at the origin of the speaker object
and the main axis of it facing in the same direction as the speaker.
The speaker emits sound directionally using an inner and an outer cone.
The angles represent their opening angles,
so 360° mean the cone is fully open and there is no directionality anymore.

- **Inside the inner cone**: Full volume is maintained.
- **Between the inner and outer cone**: Volume is interpolated linearly.
- **Outside the outer cone**: Volume is reduced according to the *Outer Cone Volume* setting.

Angle Outer
:   The outer cone angle in degrees.
    Outside this cone, the volume is determined by *Outer Cone Volume*.

Angle Inner
:   The inner cone angle in degrees.
    Inside this cone, full volume is maintained.

Outer Cone Volume
:   The volume level outside the outer cone.
    A lower value makes the sound more directional.

### Animation

Controls animation data for scene-level properties, including active [Actions](../../../animation/actions.xhtml)
and their assigned [Slot](../../../animation/actions.xhtml#animation-actions-slots).

See [Manually Assigning Actions and Slots](../../../animation/actions.xhtml#animation-actions-slots-manual-assign) for more information.

### Custom Properties

Create and manage your own properties to store data in the action’s data block.
See the [Custom Properties](../../../files/custom_properties.xhtml#files-data-blocks-custom-properties) page for more information.