taglib-wasm
Version:
TagLib for TypeScript platforms: Deno, Node.js, Bun, Electron, browsers, and Cloudflare Workers
105 lines • 3.53 kB
TypeScript
/**
* Basic audio metadata properties supported across all common formats.
* These are the core tags that most audio files should have.
*/
export declare const BASIC_PROPERTIES: {
readonly TITLE: {
readonly key: "TITLE";
readonly description: "The title of the track";
readonly type: "string";
readonly supportedFormats: readonly ["ID3v2", "MP4", "Vorbis", "WAV"];
readonly mappings: {
readonly id3v2: {
readonly frame: "TIT2";
};
readonly vorbis: "TITLE";
readonly mp4: "©nam";
readonly wav: "INAM";
};
};
readonly ARTIST: {
readonly key: "ARTIST";
readonly description: "The primary performer(s) of the track";
readonly type: "string";
readonly supportedFormats: readonly ["ID3v2", "MP4", "Vorbis", "WAV"];
readonly mappings: {
readonly id3v2: {
readonly frame: "TPE1";
};
readonly vorbis: "ARTIST";
readonly mp4: "©ART";
readonly wav: "IART";
};
};
readonly ALBUM: {
readonly key: "ALBUM";
readonly description: "The album/collection name";
readonly type: "string";
readonly supportedFormats: readonly ["ID3v2", "MP4", "Vorbis", "WAV"];
readonly mappings: {
readonly id3v2: {
readonly frame: "TALB";
};
readonly vorbis: "ALBUM";
readonly mp4: "©alb";
readonly wav: "IPRD";
};
};
readonly DATE: {
readonly key: "DATE";
readonly description: "The date of recording (typically year)";
readonly type: "string";
readonly supportedFormats: readonly ["ID3v2", "MP4", "Vorbis", "WAV"];
readonly mappings: {
readonly id3v2: {
readonly frame: "TDRC";
};
readonly vorbis: "DATE";
readonly mp4: "©day";
readonly wav: "ICRD";
};
};
readonly TRACKNUMBER: {
readonly key: "TRACKNUMBER";
readonly description: "The track number within the album";
readonly type: "string";
readonly supportedFormats: readonly ["ID3v2", "MP4", "Vorbis", "WAV"];
readonly mappings: {
readonly id3v2: {
readonly frame: "TRCK";
};
readonly vorbis: "TRACKNUMBER";
readonly mp4: "trkn";
readonly wav: "ITRK";
};
};
readonly GENRE: {
readonly key: "GENRE";
readonly description: "The musical genre";
readonly type: "string";
readonly supportedFormats: readonly ["ID3v2", "MP4", "Vorbis", "WAV"];
readonly mappings: {
readonly id3v2: {
readonly frame: "TCON";
};
readonly vorbis: "GENRE";
readonly mp4: "©gen";
readonly wav: "IGNR";
};
};
readonly COMMENT: {
readonly key: "COMMENT";
readonly description: "Comments or notes about the track";
readonly type: "string";
readonly supportedFormats: readonly ["ID3v2", "MP4", "Vorbis", "WAV"];
readonly mappings: {
readonly id3v2: {
readonly frame: "COMM";
};
readonly vorbis: "COMMENT";
readonly mp4: "©cmt";
readonly wav: "ICMT";
};
};
};
//# sourceMappingURL=basic-properties.d.ts.map