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 (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.wavpack.WavPackInfo(fileobj)

WavPack stream information.

channels

number of audio channels (1 or 2)

Type

int

length (float

file length in seconds, as a float

sample_rate

audio sampling rate in Hz

Type

int

version
Type

int

pprint()

Returns: text: Print stream information