Name
audio_to_xml — extract metadata from audio data and return it as XML
Synopsis
any audio_to_xml(
|
in data varchar, |
| in length integer, | |
in type integer); |
Description
Decodes the audio container in data (the first
length bytes) and returns its tag and stream
metadata as an XML entity. type selects the
expected format family: ID3 (MP3), FLAC, Ogg Vorbis, or WAVE/RIFF. The
returned XML uses element names matching the tag-frame identifiers of the
source format (e.g. TIT2, TPE1 for
ID3v2; TITLE, ARTIST for Vorbis
comments).
Useful for indexing audio uploaded into a WebDAV folder or stored in BLOB columns without going through an external metadata tool.