AIFF¶
AIFF audio stream information and tags.
-
class
mutagen.aiff.
AIFF
(filename)¶ Bases:
mutagen.FileType
AIFF(filething)
An AIFF audio file.
- Parameters
filething (filething) –
- Type
-
static
score
(filename, fileobj, header)¶ Returns a score for how likely the file can be parsed by this type.
- Parameters
- 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 an empty ID3 tag to the file.
-
load
(**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
¶ audio length, in seconds
- Type
float
-
bitrate
¶ audio bitrate, in bits per second
- Type
int
-
channels
¶ The number of audio channels
- Type
int
-
sample_rate
¶ audio sample rate, in Hz
- Type
int
-
bits_per_sample
¶ The audio sample size
- Type
int
-
pprint
()¶ Returns: text: Print stream information
-