true when no format was detected or the file could not be parsed.
true when the file was detected and parsed without errors.
The audio properties exposed by the underlying file, or null if unavailable.
Return all complex property values for the given key.
The property key (e.g. "PICTURE").
An array of VariantMap objects, or [] when no file is open.
Return the keys of all complex (non-string) properties stored in the file.
An array of property key strings, or [] when no file is open.
The underlying format-specific file instance, or null.
Return all tag fields as a unified PropertyMap. Returns an empty map when no file is open.
Remove properties not supported by the underlying tag format.
Keys of the properties to remove.
Write any pending tag changes back to the in-memory stream.
true on success, false if saving failed or no file is open.
Set complex property values for the given key.
The property key (e.g. "PICTURE").
The new values to store.
true if stored, false if the format does not support this or no file is open.
Apply a PropertyMap to the underlying tag.
The properties to set.
Unsupported properties, or props unchanged when no file is open.
The tag exposed by the underlying file, or null if unavailable.
StaticdefaultReturn the list of file extensions recognized by taglib-ts.
An array of lowercase extension strings (without the leading dot).
StaticfromCreate a FileRef from a browser Blob or File.
The blob containing audio data.
Optionalfilename: stringOptional filename override for extension-based
detection. When omitted and blob is a File,
blob.name is used automatically.
OptionalreadProperties: booleanWhen true (default), audio properties are parsed.
OptionalreadStyle: ReadStyleControls parsing accuracy vs. performance.
A resolved FileRef.
StaticfromCreate a FileRef from a raw byte array.
The audio data.
Optional filename used for extension-based format
detection (e.g. "track.mp3"). Falls back to
content-based detection when empty.
When true (default), audio properties are parsed.
Controls parsing accuracy vs. performance.
A resolved FileRef.
Staticopen
Format-agnostic handle for an audio file.
FileRefdetects the audio format automatically (by file-name extension first, then by magic-byte content inspection) and instantiates the correct format-specific File subclass. All common tag and audio-property operations are exposed as convenience methods so that callers rarely need to interact with the underlying File directly.Example
Open an audio file from a browser
Fileobject