WAVE¶
Microsoft WAVE/RIFF audio file/stream information and tags.
-
class
mutagen.wave.
WAVE
(filename)¶ Bases:
mutagen.FileType
WAVE(filething)
A Waveform Audio File Format (WAVE, or more commonly known as WAV due to its filename extension)
Parameters: filething (filething) – -
info
¶
-
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
(filething, **kwargs)¶ Load stream and tag information from a file.
-
-
class
mutagen.wave.
WaveStreamInfo
¶ WaveStreamInfo()
Microsoft WAVE file information.
Information is parsed from the ‘fmt’ & ‘data’chunk of the RIFF/WAVE 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
-
bits_per_sample
¶ int
– The audio sample size
-
pprint
()¶ Returns: text: Print stream information
-