Description
Audio is the base class of all audio files (WAVE, MP3, etc...)
Examples
<b py:sub="audio.duration">0:03:42</b> display song duration
Attributes
- duration
- get duration (h:mm:ss)
- bitrate
- get bitrate (Kbit/s)
- samplerate
- get sample rate (KHz)
- bits
- get bits per sample (8, 16, etc...)
- channels
- get number of channels (1=mono, 2=stereo, etc...)
- codec
- get codec (e.g. 'MP3')
- title
- get song title (if available e.g. in ID3 tags for MP3 files)
- album
- get album name (if available)
- artist
- get artist name (if available)
- year
- get production/release year (if available)
- track
- get track number (if available)