WavPack

WavPack reading and writing.

WavPack is a lossless format that uses APEv2 tags. Read

for more information.

class mutagen.wavpack.WavPack(*args, **kwargs)

Bases: mutagen.apev2.APEv2File

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

class mutagen.wavpack.WavPackInfo(fileobj)

WavPack stream information.

channels

int – number of audio channels (1 or 2)

length (float

file length in seconds, as a float

sample_rate

int – audio sampling rate in Hz

version

int

pprint()

Returns: text: Print stream information