AIFF

AIFF audio stream information and tags.

class mutagen.aiff.AIFF(filename)

Bases: mutagen.FileType

AIFF(filething)

An AIFF audio file.

Parameters:filething (filething) –
tags

mutagen.id3.ID3

info

AIFFInfo

static score(filename, fileobj, header)

Returns a score for how likely the file can be parsed by this type.

Parameters:
  • filename (path) – a file path
  • fileobj (fileobj) – a file object open in rb mode. Position is undefined
  • header (bytes) – data of undefined length, starts with the start of the file.
Returns:

negative if definitely not a matching type, otherwise a score,

the bigger the more certain that the file can be loaded.

Return type:

int

add_tags()

Add an empty ID3 tag to the file.

load(filething, **kwargs)

Load stream and tag information from a file.

class mutagen.aiff.AIFFInfo

AIFFInfo()

AIFF audio stream information.

Information is parsed from the COMM chunk of the AIFF file

length

float – audio length, in seconds

bitrate

int – audio bitrate, in bits per second

channels

int – The number of audio channels

sample_rate

int – audio sample rate, in Hz

sample_size

int – The audio sample size

pprint()

Returns: text: Print stream information