Package org.apache.tika.metadata
Interface Audio
public interface Audio
Audio metadata properties that have no XMPDM equivalent. XMPDM defines
XMPDM.TRACK_NUMBER and XMPDM.DISC_NUMBER but no properties
for the totals, although the common audio containers all carry them.
See TIKA-4779.- Since:
- Apache Tika 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyAverage or nominal bitrate in bits per second (averaged over the MP3 frames, the Vorbis nominal bitrate, or the MP4 'esds' average bitrate).static final PropertyAudio sample size in bits (e.g. 16).static final PropertyNumber of audio channels (e.g. 2 for stereo).static final PropertyTotal number of discs in the set (MP4 'disk' second value, ID3 TPOS "n/total", Vorbis DISCTOTAL).static final PropertyThe raw javax.sound encoding name (e.g.static final PropertyTrue if the container declares DRM protection through a protected sample entry format such as 'drms' or 'enca'.static final PropertyTrue if the stream is variable bitrate: the MP3 frames declare differing bitrates, or the Vorbis identification header does not declare one fixed rate for upper, nominal and lower.static final PropertyThe disc value exactly as tagged, seeRAW_TRACK_NUMBER.static final PropertyThe track value exactly as tagged (e.g. "3/12" or a non-numeric form like vinyl "A1").static final PropertyStock "author": name of the file's author.static final PropertyStock "comment": arbitrary text.static final PropertyStock "copyright": copyright message.static final PropertyStock "date": date of the recording or release (java.util.Date#toString() form).static final PropertyStock "duration": playback duration in microseconds (java.lang.Long).static final PropertyStock "quality": encoding/conversion quality, 1..100.static final PropertyStock "title": title of the file.static final PropertyTotal number of tracks on the album / in the set (MP4 'trkn' second value, ID3 TRCK "n/total", Vorbis TRACKTOTAL).
-
Field Details
-
TRACK_COUNT
Total number of tracks on the album / in the set (MP4 'trkn' second value, ID3 TRCK "n/total", Vorbis TRACKTOTAL). -
DISC_COUNT
Total number of discs in the set (MP4 'disk' second value, ID3 TPOS "n/total", Vorbis DISCTOTAL). -
RAW_TRACK_NUMBER
The track value exactly as tagged (e.g. "3/12" or a non-numeric form like vinyl "A1").XMPDM.TRACK_NUMBERonly receives clean integers, so nothing is lost. -
RAW_DISC_NUMBER
The disc value exactly as tagged, seeRAW_TRACK_NUMBER. -
BITRATE
Average or nominal bitrate in bits per second (averaged over the MP3 frames, the Vorbis nominal bitrate, or the MP4 'esds' average bitrate). A per-stream value: in a file with several audio tracks it reflects the last sound track's sample description. -
IS_VARIABLE_BITRATE
True if the stream is variable bitrate: the MP3 frames declare differing bitrates, or the Vorbis identification header does not declare one fixed rate for upper, nominal and lower. -
HAS_DRM
True if the container declares DRM protection through a protected sample entry format such as 'drms' or 'enca'. A file-level flag: any protected audio track sets it. Only set when protection is detected. -
CHANNELS
Number of audio channels (e.g. 2 for stereo).XMPDM.AUDIO_CHANNEL_TYPEonly distinguishes Mono from Stereo and cannot represent more than two channels. A per-stream value, seeBITRATE. -
BITS_PER_SAMPLE
Audio sample size in bits (e.g. 16). A per-stream value, seeBITRATE. -
ENCODING
The raw javax.sound encoding name (e.g. "PCM_SIGNED"), as reported byAudioFormat#getEncoding()(AudioParser). Distinct fromXMPDM.AUDIO_SAMPLE_TYPE(bit depth) andXMPDM.AUDIO_COMPRESSOR(codec name). -
SPI_DURATION
Stock "duration": playback duration in microseconds (java.lang.Long). -
SPI_AUTHOR
Stock "author": name of the file's author. -
SPI_TITLE
Stock "title": title of the file. -
SPI_COPYRIGHT
Stock "copyright": copyright message. -
SPI_DATE
Stock "date": date of the recording or release (java.util.Date#toString() form). -
SPI_COMMENT
Stock "comment": arbitrary text. -
SPI_QUALITY
Stock "quality": encoding/conversion quality, 1..100.
-