Sound(ID)

base classes — bpy_struct, ID

class bpy.types.Sound(ID)

Sound data-block referencing an external or packed sound file

filepath

Sound sample file used by this Sound data-block

Type:string, default “”, (never None)
packed_file
Type:PackedFile, (readonly)
use_memory_cache

The sound file is decoded and loaded into RAM

Type:boolean, default False
use_mono

If the file contains multiple audio channels they are rendered to a single one

Type:boolean, default False
factory

The aud.Factory object of the sound. (readonly)

pack()

Pack the sound into the current blend file

unpack(method='USE_LOCAL')

Unpack the sound to the samples filename

Parameters:method (enum in ['USE_LOCAL', 'WRITE_LOCAL', 'USE_ORIGINAL', 'WRITE_ORIGINAL'], (optional)) – method, How to unpack

Inherited Properties

Inherited Functions

References