TrueAudio¶
True Audio audio stream information and tags.
True Audio is a lossless format designed for real-time encoding and decoding. This module is based on the documentation at http://www.true-audio.com/TTA_Lossless_Audio_Codec_-_Format_Description
True Audio files use ID3 tags.
- class mutagen.trueaudio.TrueAudio(filething, ID3=None)¶
Bases:
mutagen.id3.ID3FileType
A True Audio file.
- Parameters
filething (filething) –
ID3 (mutagen.id3.ID3) –
- info¶
- Type
- tags¶
- 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
- class mutagen.trueaudio.TrueAudioInfo¶
True Audio stream information.
- length¶
audio length, in seconds
- Type
float
- sample_rate¶
audio sample rate, in Hz
- Type
int
- pprint()¶
Returns: text: Print stream information
- class mutagen.trueaudio.EasyTrueAudio(filething, ID3=None)¶
Bases:
mutagen.trueaudio.TrueAudio
Like MP3, but uses EasyID3 for tags.
- Parameters
filething (filething) –
ID3 (mutagen.id3.ID3) –
- info¶
- Type
- tags¶