TAK

Tom’s lossless Audio Kompressor (TAK) streams with APEv2 tags.

TAK is a lossless audio compressor developed by Thomas Becker.

For more information, see:

class mutagen.tak.TAK(filething)

Bases: mutagen.apev2.APEv2File

Parameters:filething (filething) –
info

TAKInfo

static score(filename, fileobj, header)

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

Parameters:
  • filename (fspath) – 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

class mutagen.tak.TAKInfo(fileobj)

TAK stream information.

channels

int – number of audio channels

length

float – file length in seconds, as a float

sample_rate

int – audio sampling rate in Hz

bits_per_sample

int – audio sample size

encoder_info

mutagen.text – encoder version

pprint()

Returns: text: Print stream information